I've been trying to solve this one myself. I have managed to get the following to work to attach multiple files. I ended up making some small changes to one from kde-apps.org. Place a shell script called attach_mail_service, make sure it's executable, in your home directory bin ie: ~/bin. The contents are as follows:
#! /bin/bash
#
# Script created by ASID
# Attach files to thunderbird
temp=""
#temp2=""
#subject="mailing files: "
count=0
for i in $*
do
count=$(( $count + 1 ))
if [ $count -eq $# ]
then
temp=${temp}file://${i}
#temp2=${temp2}file://${i}
else
temp=${temp}file://${i},
#temp2=${temp2}file://${i},
fi
done
#subject=${subject}${temp2}
if mozilla-thunderbird -remote "ping()" 2> /dev/null ;
then
mozilla-thunderbird -remote "xfeDoCommand(composeMessage,attachment='$temp')"
#,subject='$subject')"
else
mozilla-thunderbird --compose "attachment='$temp'"
fi
Now place a file named AttachToThunderbirdMail.desktop in your ~/.kde4/share/kde4/services/servicemenus directory. The contents are as follows:
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=all/allfiles,KonqPopupMenu/Plugin
Actions=attachToEmail
Type=Service
[Desktop Action attachToEmail]
Name=Attach to Email
Icon=/usr/share/pixmaps/mozilla-thunderbird.png
Exec=~/bin/attach_mail_service %F
You should be able to right click on a file or multiple files and have a context menus of Action | Attach To Email. It works for me. YMMV.