[Okular-devel] [Bug 173896] Sent-to menu entry or send-via-email menu-entry
Moritz Moeller-Herrmann
moritz-kdebugs at moeller-herrmann.de
Thu Dec 22 10:01:05 UTC 2011
https://bugs.kde.org/show_bug.cgi?id=173896
--- Comment #16 from Moritz Moeller-Herrmann <moritz-kdebugs moeller-herrmann de> 2011-12-22 10:01:04 ---
Here is a konqueror service menu that does the same for konqueror - send as
kmail attachment. Can you not add something similar to okular? Should be really
simple, you just need to hand over the file location to a script.
Even better would be to use
xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body
text] [--attach file]
which would work even with other email clients. See
http://portland.freedesktop.org/xdg-utils-1.0/
# Send-Attach.desktop
# Sends selected files as Kmail attachments.
# v4.0.5
# Tested with KDE 4.7.2
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
Actions=openKmailAttachment
Encoding=UTF-8
MimeType=application/octet-stream
ExcludeServiceTypes=application/x-iso,kdedevice/*,inode/directory
[Desktop Action openKmailAttachment]
Name=Send File As Attachment
Name[cz]=Odeslat soubor e-mailem
Name[de]=Datei als Anhang versenden
Name[en]=Send File As Attachment
Name[es]=Enviar como archivo adjunto
Name[fr]=Envoyer le fichier en pièce jointe
Name[pt]=Enviar por correio-e
Name[pt_BR]=Enviar arquivo como anexo
Name[sk]=Poslať e-mailom
Icon=kmail
Exec=kmail --composer --attach %F `echo attachment=\'file://%F\' | sed 's/
\//,file:\/\/\//g'`
X-Ubuntu-Gettext-Domain=desktop_kdebase
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Okular-devel
mailing list