I would like to develop a really simple addon in Thunderbird (based on Firefox addons) that executes an action when I type some commands. Ideally I'd either type something like:
$ thunderbird -myplugin someArgs
or
$ curl 127.0.0.1:12345/myplugin/someargs
But I don't want to run more complex codes as I want to be sure that the user can check imediately that it does not run any malware (I don't want the plugin to have full control on the OS).
Any idea how I could do that?