GNOME Bugzilla – Bug 510800
Selecting mozilla-thunderbird as the preferred mail app still launches evolution
Last modified: 2010-12-07 16:35:54 UTC
+++ This bug was initially created as a clone of Bug #318052 +++ Version details: 0.4 Distribution/Version: Ubuntu Breezy Forwarded from: http://bugzilla.ubuntu.com/show_bug.cgi?id=17103 I access System --> Preferences --> Preferred Applications. I select the Mail Reader tab. I select custom. I enter the following : /usr/bin/mozilla-thunderbird, and then I close the Preferred Applications applet. Now when I go to Nautilus and right-click with the mouse on a file and select Send To... I still get Evolution showing up as the default mailer. The preferred applications should set a key in GConf to explain the syntax to launch the mailer with attachments.
The default mailto command handled is stored in the following GConf key: /desktop/gnome/url-handlers/mailto What extra information do you need?
(In reply to comment #1) > The default mailto command handled is stored in the following GConf key: > > /desktop/gnome/url-handlers/mailto > > > What extra information do you need? From comment 0: > The preferred applications should set a key in GConf to explain the syntax to > launch the mailer with attachments. Mailers handle mailto: urls differently when it comes to attachments, and nautilus-sendto has no way to guess those.
Ok, understood. Could you attach some examples of how different applications handle this? We can then add this data to the XML file of known applications, and write the appropriate value to a gconf key when a known mailer is selected.
With '%e' being the e-mail of the destination, %f being the attachment(s) Balsa and Sylpheed: balsa --compose="%e" attach="%f" "%f" "%f"... Evolution: evolution-${version} mailto:"%e"?attach="%f"&attach="%f"... Thunderbird: thunderbird -compose to="%e",attachment=%f,%f... What I would be thinking of to split this up is in GConf entries: - command - mail contact - attachment #1 [details] - subsequent attachments For example: * evolution mailto:"%s" ?attach="%s" &attach="%s" * balsa and sylpheed balsa " --compose=\"%s\"" " attach=\"%s\"" " \"%s\"" * Thunderbird thunderbird " -compose to=\"%s\"" ,attachment=%s ,%s And all the commands could be concatenated with (in pseudo code): str = g_string_new (""); g_string_append_printf (str, contact_str, email); g_string_append_printf (str, first_attachment_str, first_attachment); for (i in attachments+1) g_string_append_printf (str, first_attachment_str, i);
I actually reworked the code in nautilus-sendto some time ago to have custom code for each mailer, so this code isn't needed any more.