title: Execute some plugin actions in Firefox/Thunderbird when asked by an external program
body: <p>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:</p>
  <pre><code>$ thunderbird -myplugin someArgs
  </code></pre>
  <p>or</p>
  <pre><code>$ curl 127.0.0.1:12345/myplugin/someargs
  </code></pre>
  <p>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).</p>
  <p>Any idea how I could do that?</p>