GNOME Bugzilla – Bug 598951
F-Spot Evolution Mail Subject
Last modified: 2009-12-20 12:57:20 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/f-spot/+bug/454972 "When sending a photo through evolution from F-Spot, one clicks on Photo --> Send By Mail. When evolution pops up, the subject of the message is my+photos. The subject shouldn't contain a +, and the M and P should be capitalized."
This happens on all of my Ubuntu computers, confirming.
Created attachment 150069 [details] [review] Patch to resolve Bug 598951
This bug has been marked as an ubuntu paper cut so I thought I'd have a go at fixing it. I traced the issue to the SendEmail.cs file where the following line was the culprit: GtkBeans.Global.ShowUri (Dialog.Screen, "mailto:?subject=" + System.Web.HttpUtility.UrlEncode(mail_subject) + mail_attach); The problem being that the subject was being encoded to URL via the UrlEncode method. I can see no reason for URL encoding the subject, removing this and using mail_subject directly appears to resolve the issue (tested using the above patch on Ubuntu 9.10) This is my first ever patch to an open source project so forgive me if I have done something wrong. Regards Iain Churcher
Iain, thx for your patch. It probably works just fine for evolution, but as evolution is handled as the "default" case, it could break some other mailers, which might require q well formatted uri. evo should urldecode the message by itself, but as it does not, I'm ok with a workaround in f-spot, as long as it's not the default case.
commit ffc684bb71085f885edf2ad9af50176c5a79beca Author: Stephane Delcroix <stephane@delcroix.org> Date: Sun Dec 20 13:56:39 2009 +0100 Do not urlencode mail_subject for evo fixes bgo#598951