


Dolphin Service Menus by dschrader 110 comments
A file is attached.
Some files are attached. - Apr 28 2006

System Software by yogin 134 comments

Dolphin Service Menus by dschrader 110 comments
$ attach-to-email "/absolute/path/1" "/absolute/path/2"
and see if it gives any useful information. - Sep 10 2005

Dolphin Service Menus by dschrader 110 comments

Various KDE 1.-4. Improvements by andrunko 313 comments

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
ls -l $(kde-config --prefix)/bin/attach-to-email
cat $(kde-config --prefix)/share/apps/konqueror/servicemenus/attachToEmail.desktop | grep Exec - Aug 29 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
body+="\n\t%s" % (path)
to:
body+="\n\t%s" % (os.path.basename(path)) - Aug 26 2004

Various KDE 1.-4. Improvements by dschrader 19 comments
Perhaps the reason I prefer only my home page is that it's set to google, so I open a new tab very often to search for something. - Aug 25 2004

Dolphin Service Menus by dschrader 110 comments

Various KDE 1.-4. Improvements by dschrader 19 comments
If people really want that option, I'll add it. - Aug 24 2004

Various KDE 1.-4. Improvements by dschrader 19 comments

Various KDE 1.-4. Improvements by dschrader 19 comments

Various KDE 1.-4. Improvements by dschrader 19 comments

Various KDE 1.-4. Improvements by dschrader 19 comments

Dolphin Service Menus by LMCBoy 8 comments
for each in `ls -1 %u/*~`; do mv $each ~/Desktop/Trash/; done - Jun 22 2004

Dolphin Service Menus by Matti 8 comments

Dolphin Service Menus by jmboris 2 comments

Dolphin Service Menus by Matti 8 comments

Dolphin Service Menus by Matti 8 comments
Also, your readme explains that it can't handle files with spaces in the filename, but it works for me! - Jun 13 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
http://bugzilla.ximian.com/show_bug.cgi?id=28765
for more information. - May 31 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
I prefer full path names because it shows the directory structure, but I can see how that might be a security issue for some. It's a really simple change to make, though. - May 27 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
ServiceTypes=all/all
Actions=attachToKmail
[Desktop Action attachToKmail]
Name=Attach to Kmail
Icon=attach
Exec=kmail --attach %U
That's fine if you always want to use kmail, don't select directories, and don't select filenames like "/home/user/file%20name" that kmail will interpret as http encoding even though it's local. - Apr 01 2004

Dolphin Service Menus by dschrader 110 comments
/usr/local/bin/multiple-attachments-servicemenu /path/to/file
but not right-click on /path/to/file and select Attach to Email?
That's very odd considering that the servicemenu just calls the script outright. The only thing that I could think of would be that the servicemenu didn't end up in the right directory (i.e. $KDEDIR/share/apps/konqueror/servicemenus/). - Mar 31 2004

Dolphin Service Menus by dschrader 110 comments
$KDEDIR/share/apps/konqueror/servicemenus
For each user, they are in
~/.kde/share/apps/konqueror/servicemenus - Mar 27 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
if ec=="" or os.path.split(ec)[1]=="kmail":
and then people could always change it if they wanted to.
Thanks for your fix by the way. I hadn't considered that people might enter "kmail" in the config file until you mentioned it. - Mar 26 2004

Dolphin Service Menus by dschrader 110 comments
Now, you raise a good point. If someone wants to use kmail and also have it entered in the config file, then if they enter "EmailClient=kmail" they probably intended for it to be KDE's kmail with all the options like -s -B --attach and stuff like that.
Your fix is good assuming that kmail is entered as if it is in the path. A stronger solution might be:
if ec=="" or os.path.split(ec)[1]=="kmail":
Granted that this is great for most if not all people, I still don't really want the script to be guessing what people intended to enter. I think the script should just trust the user and stick to what is entered. After all, someone could enter "kmail --attach %A" and this could be because the person wants there to be attachments but not the default subject/body stuff. - Mar 26 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
/usr/bin/mozilla -compose "to=%t,subject=%s,body=%B,attachment=%A"
set in Control Center > KDE Components > Component Chooser > Email Client.
Thanks for the feedback, by the way. - Mar 12 2004

Dolphin Service Menus by dschrader 110 comments
What is the command that you have set in KDE preferences to do this? I've tried:
mozilla -compose "attachment=%A"
and that works for one file selected, but no more than one. I haven't done much with mozilla at all, but as far as I can tell right now, mozilla will accept one attachment given on the command line as an argument, but not more than one. I tried things like:
mozilla -compose "attachment='/dir/dir/file',attachment='/dir/dir/file'"
mozilla -compose "attachment='/dir/dir/file' '/dir/dir/file'"
If anyone has an understanding of how to set multiple attachments on mozilla's mail client with command line arguments, please tell us. - Mar 09 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments
As for adding options to gzip, bzip2, or zip, that's a good idea. Now, the ways to go about doing this might be: the service menu has a sub-menu that lists the different options each of which calls the python script with different arguments depending on what to do (this would be pretty easy, but as far as I know, KDE < 3.2 doesn't allow sub-menus in service menus), or to offer the menu within the python script itself either using kde-bindings (which would require it to be installed), or kdialog. I would much rather go the sub-menu route, but for people without KDE 3.2, it could be very crowded. I'll think more about a good way to do this, though. - Mar 08 2004

Dolphin Service Menus by dschrader 110 comments

Dolphin Service Menus by dschrader 110 comments