Attach to Email Service Menu

Dolphin Service Menus

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

0
Score 50.0%
Description:

A service menu for Konqueror that works in conjunction with a python script to allow the user to select multiple files and add them as attachments to an email using whatever mail client is configured. If a directory is selected, then its contents will be attached to the email recursively.

To Install:
0) tar -jxf attach-to-email-servicemenu.tar.bz2

1) cd attach-to-email-servicemenu

2) ./install.sh --remove-old
#Get rid of previous installations.

3) ./install.sh [--global-install|--local-install]
#Depending on whether you want system-wide or not.

The Readme file included explains how to set this up for different email clients.
Last changelog:

13 years ago

0.7.5 New Italian translation by Giurerro.

0.7.4 New Russian translation by Kalimullin Arthur and completed French translation by LaFleche.

0.7.3 New German translation by Adrian Freihofer and partial French translation by LaFleche. Also added instructions for KMail.

0.7.2 New Hungarian translation by Paul Körössy, some minor cleaning, and instructions for Mozilla Thunderbird.

reggler

10 years ago

Hi There,

I can't get this working with KDE 4.2.2 :(

Report

pkorossy

10 years ago

After applying this:
http://www.kde-apps.org/content/show.php/KDE4-servicemenus?content=80131
and modifying 'kde-config' to 'kde4-config' in the following lines in attach-to-email it works now in KDE4:

emailclient="$(kde-config --prefix)/bin/kmail -s %s --body %B --attach %A"
kdeprefix=commands.getoutput("kde-config --prefix")
kdelocalprefix=commands.getoutput("kde-config --localprefix")

But still have problem: I get an error message with wrong character in the filename if the name of the attachment contains '_' characters.

It would be nice this servicemenu to be updated for KDE4.

Report

nadavkav

10 years ago

i had to remark lines 105 >> 109

#if os.path.isabs(path):
#if find(emailclient,"kmail")!=-1 or find(emailclient,"evolution")!=-1:
#kmail and evolution will interpret http char codes even for local files;
#this compensates for that.
#path=urlsafe(path)

for attachments to work fine in kmail

and copy the generated .desktop file from the current folder to
/usr/share/kde4/services/ServiceMenus
(for global kde4 availability)

thank you for a beautiful and useful service menu :-)

Report

ptitpoul

12 years ago

For using with Mozilla Thunderbird 2 (Kubuntu gutsy), I had to change the python script:
- line 109, no \' around %s : attachments.append("%s" % (path))
- line 117, comma separation and "file://" : attachments=join(attachments,",file://")

Good servicemenu, but a little heavy for the translation system in my opinion: for 4 sentences, you may include them in the python script rather than to create a lot of tiny locale folders.

Why did you choose ~/.kde/bin rather than the common ~/bin ? As ~/bin is already in the PATH variable, you don't have to modify attachToEmail.desktop during the install process (more simple).

Regards

Report

imr

13 years ago

Can someone explain to me in what it is different from the already existing option in konqui to send file in an email, directories being zipped?

Report

AmyRose

12 years ago

I think the one that comes with your Konqueror installation only supports KMail, while this service menu lets you use any e-mail client.

Report

linuksamiko

13 years ago

" Pain relief

Report

muttoni

13 years ago

it is funamental that it is included as a KDE standard feature in future releases

Report

BenNavis

13 years ago

This should be integrated into KDE!
Nice feature!
b.

Report

linuxcolor

13 years ago

Ya ...... Good Application........

Report

LaFleche

13 years ago

#: attach-to-email:109
msgid "Ce fichier devrait être en pièce jointe : "
msgid_plural "Ces fichiers devraient être en pièces jointes : "
msgstr[0] "Singular translation:"
msgstr[1] "Plural translation:"

Report

C

dschrader

13 years ago

Thanks for your contribution. Could you also translate the other messages in the file?

A file is attached.
Some files are attached.

Report

LaFleche

13 years ago

A file is attached -> Un fichier est en pièce jointe
Some files are attached.-> des fichiers sont en pièces jointes

Report

thelinxportal

13 years ago

Great work, and I agree should be a KDE default.

Report

anupamsr

13 years ago

This should be a default behaviour of KDE.

Report

kkrizka

14 years ago

I've been looking for something like this!! They should include it in the default KDE install, it's very useful.

Report

gwolf

14 years ago

Nice work, do you plan to add support for thunderbird as well? It would be really nice ;-)

Report

BorgQueen

14 years ago

It will only attach 3 items to an email.
Is there a set limit or something?

The BorgQueen

Report

C

dschrader

14 years ago

It works for me. What email client are you using?

Report

BorgQueen

14 years ago

Kmail, kde 3.3
on Debian 3.1 Sarge and Ark Linux

Report

C

dschrader

14 years ago

Try running the script directly from a command line:

$ attach-to-email "/absolute/path/1" "/absolute/path/2"

and see if it gives any useful information.

Report

BorgQueen

14 years ago

It did. Oddly enough, it said the script could not be found. Why it partially worked is beyond me. As soon as I changed perms wrx,r,r (it was already executable), everything works. Go figure.

Thanks for the help and the great service menu. It really should be come standard service menu for KDE.

If you have a wish list, the idea of compressing attachments into a single (compressed) directory would be great. Its better to send attachments in a compressed file for obvious reasons.

Thank you very much for your help.

The Borg Queen

Report

geppo78

14 years ago

Could you send me the command to use thunderbird as client??

Report

carlops

13 years ago

To use thunderbird, change the Exec command in the servicemenu to:
Exec=/usr/bin/mozilla-thunderbird -remote "xfeDoCommand(composeMessage,attachment='file://%U')"

Cheers

PS
I use Debian, hence the mozilla-thunderbird command. Others might use thunderbird

Report

superheld

14 years ago

i like this small tool very mutch. great!

but now i using suse 9.2, installd via internet. if i take 2 ore more files, only the first is sending to the kmail. the others are displayd in the textarea of the mailer, but not in attached files.

Report

13 years ago

0.7.5 New Italian translation by Giurerro.

0.7.4 New Russian translation by Kalimullin Arthur and completed French translation by LaFleche.

0.7.3 New German translation by Adrian Freihofer and partial French translation by LaFleche. Also added instructions for KMail.

0.7.2 New Hungarian translation by Paul Körössy, some minor cleaning, and instructions for Mozilla Thunderbird.

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.7.5
updated Oct 30 2006
added Mar 06 2004
downloads 24h
0
mediaviews 24h 0
pageviews 24h 9
System Tags addon