02.28.07

My first Thunderbird SJS app

Posted in POW at 3:21 pm by David Kellogg

I created my first Thunderbird SJS app. This means I ran a server inside Thunderbird and ran a remote command. It’s a little tough going due to a lack of TB documentation, but exciting. Here it is.

test.sjs:

<?sjs
   document.writeln("Hello world!");
   var mess = Components.classes["@mozilla.org/messenger;1"].
      getService(Components.interfaces.nsIMessenger);
   mess.launchExternalURL ( "http://www.yahoo.com/" );
?>

Haven’t seen that page lately, huh? Load the page, http://localhost:6671/test.sjs to run this remotely on Thunderbird. Mind spinning yet? The reason to do these crazy things is to open up your email to yourself, remotely from anywhere, without a special client.

Dave

5 Comments »

  1. Ben said,

    March 20, 2007 at 2:27 pm

    Looks like pow_exec doesnt work- just a heads up!

  2. Scott Wickham said,

    April 7, 2007 at 5:34 am

    I am currently porting my Sqlite Database Manager to server side JavaScript to work with POW.
    http://www.scottwickham.com/sqlitedm/

    As you can see I released it under the M.I.T. License. I love POW and I want to use it as a development platform. Unfortunately you haven’t specified what the licensing terms are for POW so there is a disincentive to develop, write documentation for it (as I have contributed to on the wiki).

    I am am sure my e-mail’s haven’t made it through you spam filters. So I am posting here hoping that you receive this important message.

    Please pick a license, preferably an open one like the M.I.T. License or put it in the public domain. But people using it need to know that their work wont be wasted on something they can’t legally re-publish and repackage.

  3. Scott Wickham said,

    April 7, 2007 at 10:00 am

    I just installed on an windows XP machine. The database function do not work.

  4. David Kellogg said,

    April 20, 2007 at 8:48 am

    I’ll dig deeper to see if the DB calls work properly on XP. The license is GPL, so please contribute.

  5. David Kellogg said,

    April 23, 2007 at 4:31 pm

    The DB Windows problem appears to be solved. Windows is very strange sometimes. Thanks to Scott for pointing out the problem and suggesting a solution.

Leave a Comment