#! /bin/bash
#
# if thunderbird is allready running, send it a command

if mozilla-thunderbird -a thunderbird -remote "ping()" 2> /dev/null ; then
    mozilla-thunderbird -a thunderbird -remote "xfeDoCommand(composeMessage,attachment='file://$1')"
else
    mozilla-thunderbird --compose "attachment=file://$1" &
fi

