
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This service menu will allow you to right click on one or more files and attach it to a new E-mail with Thunderbird.
+ A "Read Me" file is included for install instructions
+ Will attach more than one file to your e-mail
10 years ago
3.0
Updated to work with KDE4 & Dolphin
2.1 Now has a service menus for both Konqueror and Dolphin. Also now displays a Thunderbird icon next to the service menu item.
2.0 Thanks to "ptitpoul" it will now attach more than one file.
1.0 Worked with one file
10 years ago
3.0
Updated to work with KDE4 & Dolphin
2.1 Now has a service menus for both Konqueror and Dolphin. Also now displays a Thunderbird icon next to the service menu item.
2.0 Thanks to "ptitpoul" it will now attach more than one file.
1.0 Worked with one file
ljogerst
10 years ago
Thanks - ljogerst
First, the automatic installation fails (on Kubuntu 10.04) as the target
path does not exist, I think. On my installation, I had to put the
attach_thunderbird.desktop file in
~/.kde/share/kde4/services/ServiceMenus
(but this may be an (K)Ubuntu-specific problem).
However, I think the following really is a system-independant bug: When
I'm right, Thunderbird wants to have a file /foo/bar passed as
file:///foo/bar
instead of
file://foo/bar
(at least what I've tested here...), so I assume the "Exec" line have to
be changed from
Exec=thunderbird -compose "attachment='file:/`echo %F | sed 's/\\
\\//,file:\\/\\//g'`'"
to
Exec=thunderbird -compose "attachment='file://`echo %F | sed 's/\\
\\//,file:\\/\\/\\//g'`'"
Hope I'm right and could help...
Regards,
Felix Günther
Report
janet
8 years ago
Report
ferbrok
10 years ago
After trying some time on kubuntu reciving the "check your 'temporary directory' setting" message, I found this http://www.pclinuxos.com/forum/index.php?topic=67956.0;wap2 and realized some changes for the service folder and icon location:
:::::::::::::::::::::::::::::::::::
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:
Code:
#! /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 /usr/share/kde4/services/ServiceMenus directory.
The contents are as follows:
Code:
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=all/allfiles,KonqPopupMenu/Plugin
Actions=attachToEmail
Type=Service
[Desktop Action attachToEmail]
Name=Attach to Email
Icon=/usr/share/thunderbird/icons/mozicon16.xpm
Exec=~/bin/attach_mail_service %F
Hope this helps
Greetings
Report
sloopy
11 years ago
I changed the Icon suffix from .png to .xpm
nix
Then I combined a service menue for k.mail with your service menue.
[Desktop Entry]
ServiceTypes=all/allfiles
Actions=emailAsAttachment
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
[Desktop Action emailAsAttachment]
Nane=email_as_attachement
Name[de]=Per e-Mail versenden
Icon=email
Exec=thunderbird -compose `echo attachment=\'file://%F\' | sed 's/ \//,file:\/\/\//g'`
I have a thunderbird-window that openes but no attachement.
Not very interesting.
So could you please tell me how you make it run ?
Thank you
Report
wlos
10 years ago
Maybe usage of backtick operator depends on default shell? I'm using bash and this
http://devel.pc-serwis.com/2010/02/how-to-add-service-menu-entry-in-dolphin/
works for me.
Report
sloopy
10 years ago
<name[de]Versenden mit Thunderbird>
and now it works. I do not exactly know where is the difference between the copied and the downloaded version but it works and that's the most important.
Greetings
Sloopy
Report
ljogerst
10 years ago
Thanks
Report
EstebanTristan
12 years ago
[Desktop Entry]
Actions=attachToEmail
Encoding=UTF-8
ServiceTypes=all/allfiles,KonqPopupMenu/Plugin
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
Type=Service
[Desktop Action attachToEmail]
Exec=thunderbird -remote "xfeDoCommand(composeMessage,attachment='file://%f')"
Name=Attach to Thunderbird Mail
Name[fr]=Envoyer avec Thunderbird
Icon=/usr/share/thunderbird/icons/mozicon16.xpm
and place it in the /usr/share/kde4/services/ServiceMenus/ folder. I have the service menu in dolphin but it doesn't attach the file. I have the same problem if I replace the Exec line with Exec=thunderbird -compose `echo attachment=\'file://%F\' | sed 's/ \//,file:\/\/\//g'` or with the solution with the quotes also. Anyone has an idea why it doesn't xork?
Report
Loriant
11 years ago
[Desktop Entry]
Actions=attachToEmail
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
Type=Service
[Desktop Action attachToEmail]
Name=Attach to Thunderbird Mail
Name[fr]=Envoyer avec Thunderbird
Icon=/usr/share/thunderbird/icons/mozicon16.xpm
Exec=thunderbird -compose `echo attachment=\'file://%F\' | sed 's/ \//,file:\/\/\//g'`
Report
maidis
11 years ago
Name[tr]=Thunderbird ile Gönder
Icon=/usr/share/pixmaps/thunderbird.png
Exec=thunderbird -compose attachment="%F"
Report
Okanda
12 years ago
But for Debian users, Icedove replace Thunderbird.
So, edit the two files *.desktop and change thunderbird with icedove on the Exec line.
For the icon, the location is :
/usr/share/icedove/icons/mozicon16.png
Report
ptitpoul
13 years ago
Exec=thunderbird -compose `echo attachment=\'file://%F\' | sed 's/ \//,file:\/\/\//g'`
Report
ptitpoul
13 years ago
This allows to take filenames which comprise " -" (a space followed by a dash). However it can't attach filename comprising a comma.
Report
XMasitel
13 years ago
This service menu doesn't work with Dolphin, here the Dolphin script (with italian translation ;-)):
[Desktop Entry]
Actions=attachToEmail
Encoding=UTF-8
ServiceTypes=all/allfiles
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
[Desktop Action attachToEmail]
Exec=/home/bruno/thunderbird/thunderbird -remote "xfeDoCommand(composeMessage,attachment='file://%f')"
Name=Attach to Thunderbird Mail
Name[it]=Invia E-mail con Thunderbird
Icon=attach
Report
danux
10 years ago
Just found an error. It doesn't work if Thunderbird isn't opened. So I wrote it again but I put it in a new thread, 'cause it has other commands and so!
Report
danux
10 years ago
Name[es]=Enviar adjunto con Thunderbird
Name[de]=Verschicken als Anhang
Report
ljogerst
13 years ago
Report
stonewolf
15 years ago
Report
mfriedrichs
15 years ago
thanks a lot.
Report
Makub3X
15 years ago
heres the portuguese [pt-PT] translation
Name[pt]=Anexar Ficheiro no Thunderbird
Report
shiva
15 years ago
*Service-Menü installieren ->
*Zu persönlichen Aktionen hinzufügen
*Zu systemweiten Aktionen hinzufügen
*Persönliches Web-Kürzel hinzufügen
*Systemweites Web-Kürzel hinzufügen
Works fine for me!
Report
BenNavis
16 years ago
Report
linpete
16 years ago
to get the menu working with a running instance of thunderbird use this command for exec line in AttachToThunderbirdMail.desktop :
Exec=[PATH TO THUNDEBIRD/]thunderbird -remote "xfeDoCommand(composeMessage,attachment='file://%f')"
this is workin for me unter KDE 3.2.1
thnx for the menu-file
pete
Report
daveGoBlue
15 years ago
1. Thunderbird is already runnning
2. Thunderbird is not yet running
you can use the following Exec command:
Exec=mozilla-thunderbird -remote "xfeDoCommand(composeMessage,attachment='file://%f')" || mozilla-thunderbird --compose attachment=file://%f
Report
ljogerst
16 years ago
I used this for Mepis:
Exec=/usr/bin/mozilla-thunderbird -remote "xfeDoCommand(composeMessage,attachment='file://%f')"
and it attaches properly when Thunderbird is already open. I still prefer it without opening Thunderbird, but to each his own. Enjoy!
Report