On http://portland.freedesktop.org/wiki/EmailConfig, it says Moziila Thunderbird does not support email attachments from xdg-email. It turns out Thunderbird disabled attachments via a mailto: URL on purpose, because they believe it is not secure. [1] I'm proposing the following workaround: (see attachment) In open_kde() / open_gnome(), look up the email client kde/gnome is trying to run. If the client contains Thunderbird in its name, then call run_thunderbird(), which parses the mailto url, reformats it in a way that Thunderbird accepts, and then run Thunderbird. open_xfce() does not need to do this because exo-open already does this. [2] [1] https://bugzilla.mozilla.org/show_bug.cgi?id=99055#c6 [2] http://svn.xfce.org/svn/xfce/libexo/trunk/exo-helper/helpers/exo-compose-mail-0.3
Created attachment 12807 [details] [review] proposed fix
will the proposed fix from Comment #1 be integrated?
fabo, can you review this patch please ?
Can confirm bug, and also that the patch works.
http://webcvs.freedesktop.org/portland/portland/xdg-utils/scripts/xdg-email.in?r1=1.27&r2=1.28
Created attachment 33640 [details] [review] to_thunderbird.diff Hi Fathi. It looks like you committed the patch with an error and the "TO:" field isn't working. Here's a patch to fix it.
"TO:" field is not working. Patch attached
oups, sorry. fixed.
Unfortunately, this fix does not work anymore with thunderbird 3, because of two regressions in the way thunderbird 3 handle -compose. I've reported the issue in thunderbird bugzilla and all details about this problem can be found here : https://bugzilla.mozilla.org/show_bug.cgi?id=549058 I guess that this has to be fixed in thunderbird and not xdg-utils, but I might be wrong.
Strips the trailing comma as required by Thunderbird 3: ATTACH=$(echo "$MAILTO" | sed 's/^attach=/\n\nfile:\/\//g' | awk '/^file:/ { printf "%s,",$0 }') ATTACH=$(echo "$ATTACH" | sed 's/,$//')
Created attachment 35340 [details] [review] thunderbird_trailing_comma.diff Patch tested and working following Robert's last comment.
a friendly ping, can we finally patch&close this bug?
fixed in CVS
I added the above patch to the /usr/bin/xdg-email on my Ubuntu Maverick system, but it doesn't seem to help. I still get an error when I try to e-mail photos from Picasa 2.7 to Thunderbird 3.1.6. Any suggestions are welcome regarding things I can do to help track down the problem.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.