Well Firefox is a web browser only and it doesn’t come with a mail client, so it will call the system default mailer to handle “mailto:” links.
It is hard to say how to define the system default mailer. It’s different according to your OS: On windows they use registry, in the Unix world it depends on which desktop you are using, KDE or GNOME, they have different ways to set the default mailer. So Firefox comes with its own way:
Go to “about:config” and type “mailto” in the filter. There are two prefs we are interest:
network.protocol-handler.app.mailto
The first one says if the mailto: link should be handled by an external mailer, set it to “true” if it’s not. The second one specifies which progrom to call as the external mailer. This pref is not set by default, just add a new one if you didn’t see it in your “about:config”
We can have arguments in the “network.protocol-handler.app.mailto” value, but the easiest way is to write a wrapper for your mailer and call it with whatever in the “mailto:” link.
In my case, I have “network.protocol-handler.app.mailto” set to “/home/dryice/bin/mymailer” and
emacsclient –no-wait –eval “(gnus-url-mailto \”$1\”)”
as ~/bin/mymailer. This will call Gnus in Emacs to handle the “mailto:” link. How powerful it is will depends on your mailer, in my case, gnus-url-mailto will handle not only the mail address, but also the subject and the escaped characters in it. Now submitting followups to the FreeBSD PR system like this one becomes really handy.
Post a Comment
You could use <code type="name"> to get your code colorized