PATCH: Add support for gnome-mail to send documents from file menu.

Peter Tillemans pti at snamellit.com
Tue Jun 12 07:04:08 PDT 2012


made available under the MPL/LGPLv3+

Hi,

I originally posted this as a bug on launchpad,
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1011735. I was
instructed to send the patch here instead. I also had to reassemble it a
bit as part of the original was also to stuff which was added downstream by
the debian packager.

This patch adds support for gnome-gmail as mail user agent for sending
documents from the filemenu. This was super easy since the gnome-gmail CLI
is modelled on the one from evolution.

the strange addition of "gnome" after "evolution" is because the basename
of the mailer is piped through sed to remove 'suffixes" from the name,
which also removes the "-gmail" part.

The patch is of course made available under the MPL/LGPLv3+


➜  core git:(master) ✗ git diff
diff --git a/shell/source/unix/misc/senddoc.sh
b/shell/source/unix/misc/senddoc
index a18562b..16f3660 100755
--- a/shell/source/unix/misc/senddoc.sh
+++ b/shell/source/unix/misc/senddoc.sh
@@ -208,7 +208,7 @@ case `basename "$MAILER" | sed 's/-.*$//'` in
         rm -f $BODY
         ;;

-    evolution)
+    evolution | gnome) # gnome-mail is shortened from the dash on

         while [ "$1" != "" ]; do
             case $1 in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120612/234599ff/attachment.htm>


More information about the LibreOffice mailing list