I found that, for FF v1.0PR, it is sending the following URL to the mailto script:
mailto:author@site.com?subject=...?body=...
Accordingly, I changed the script provided by leonya to the following, which works nicely for me, after making the necessary changes in FireFox's "about
:config". You can see the "echo" statement I used to figure out what was going on.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#!/bin/bash
# script used by FireFox to compose a mail.
# firefox apparently sends args in form:
# mailto:author@site.com?subject=...?body=...
export MOZILLA_TB_HOME="/path/to/thunderbird"
TB=$MOZILLA_TB_HOME/thunderbird
REMOTE_TB=$MOZILLA_TB_HOME/mozilla-xremote-client
# echo "Firefox mailto: $*" >> $HOME/log.txt
MAILTO_URL="$1"
RECIPIENT=`echo "$MAILTO_URL" | /bin/sed -s 's/^mailto:\([^?]*\)?.*/\1/'`
OTHER=`echo "$MAILTO_URL" | /bin/sed -s 's/[^?]*?/?/'`
if $REMOTE_TB -a Thunderbird 'ping()' ; then
# thunderbird is running
$REMOTE_TB -a Thunderbird "mailto($RECIPIENT$OTHER)"
else
# thunderbird is not running
$TB -P default -compose "$MAILTO_URL"
fi
exit 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=