Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/rudeboy/rudeboy.org/wp-includes/functions-formatting.php on line 76
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/rudeboy/rudeboy.org/wp-content/plugins/obfuscate-email.php on line 71
A buddy of mine has been looking to switch to mutt from graphical mail client for it’s configurability, speed and stability. I didn’t get into setting up console mail apps in my last post because I didn’t think there was going to be much interest considering I only know four people who use mutt (and a few suckers who use emacs) for mail. I don’t use or like emacs so if you use it you’re on your own. However, if you use mutt this is how you set it up to be used as the mail app with Firefox.
First off reopen the
about:config dialog and find the
network.protocol-handler.app.mailto setting as described in the last post. Instead of setting it’s value to the name of a client we set it to
mutt_mailto.sh. Now, somewhere in your path (/usr/bin, /usr/local/bin, etc.) make the mutt_mailto.sh file. It’s contents are easy and should look like this:
EXEC Eterm -e mutt "$@"
The syntax is near identical for xterm. Just change the second line to
EXEC xterm e mutt "$@". This should work with any app that accepts command line arguments and understand the standard “mailto:firstname.lastname@example.org?subject=foobar” syntax.