LibreOffice ignores setting mailclient to gnome-gmail

Bug #1011735 reported by Peter Tillemans
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

LibreOffice does some weird checking on email clients.

by default it sends the mails to "sensible-lomua" which is added by the upstream. However this is not a script, but if this is added it is passed to a delivery script.

It delegates actual delivery to a script : /usr/lib/libreoffice/program/senddoc

The senddoc script is patched upstream to translate "sensible-lomua" to some mail user agent for which an executable is found and rewrites the mail delivery executable. This also has no support for gnome-gmail.

gnome-gmail has the same (or at least similar) CLI params as evolution, so I could workaround the issue by creating a symbolic link :

    cd /usr/bin
    sudo ln -s gnome-gmail evolution

LibreOffice now picks up the executable file and does the right thing.

This is a practical workaround, but rather hacky...

This patch applied to senddoc adds support for gnome-mail :

--- a/usr/lib/libreoffice/program/senddoc 2012-04-10 19:14:24.000000000 +0200
+++ b/usr/lib/libreoffice/program/senddoc 2012-06-11 19:28:19.854232144 +0200
@@ -65,6 +65,9 @@
             MAILER=/usr/bin/evolution
         elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then
             MAILER=/usr/bin/kmail
+ elif [ -x /usr/bin/gnome-gmail ]; then
+ # fallback
+ MAILER=/usr/bin/gnome-gmail
         elif [ -x /usr/bin/evolution ]; then
             # default
             MAILER=/usr/bin/evolution
@@ -227,7 +230,7 @@
         rm -f $BODY
         ;;

- evolution)
+ evolution | gnome)

         while [ "$1" != "" ]; do
             case $1 in

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.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libreoffice-common 1:3.5.3-0ubuntu1 [modified: usr/lib/libreoffice/program/senddoc]
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Mon Jun 11 19:01:51 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
ProcEnviron:
 LC_CTYPE=en_US.UTF-8
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Peter Tillemans (pti-snamellit) wrote :
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Could you send your patch to <email address hidden> with a subject prefixed PATCH and as well as a: "made available under the MPL/LGPLv3+" license statement?
http://wiki.documentfoundation.org/Development/Easy_Hacks

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Oh, and thanks for the patch!

Revision history for this message
Peter Tillemans (pti-snamellit) wrote :
Revision history for this message
Peter Tillemans (pti-snamellit) wrote :

The patch was applied upstream :

commit 60845a6d213f7e84857608f828dbbfd5d1c69e58
Author: Peter Tillemans <email address hidden>
Date: Tue Jun 26 12:20:36 2012 +0100

    enable gnome-mail and xdg-mail

    Change-Id: Iba47ee76328aeb4734dbeb46322a9516b0ea9f7a

Is there anything else to be done for this bug report?

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Nope, should be fine.

Changed in libreoffice (Ubuntu):
status: Incomplete → Fix Committed
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

long released with upstream fix.

Changed in libreoffice (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.