Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Get mailto URLs to open in mutt UNIX
May 26 Update: Due to a security issue with MailtoMutt, it is temorarily unavailable for download. Read more about the current situation. Once the new version is released, this hint will be udpated.

If you want URLs like mail foo@bar.tld about stuff to work with mutt (or pine, if you patch the code, but blech), you can download a small program I wrote. Documentation is lacking, as is customizability, but hey, for my first Cocoa/Objective-C app I think it's OK.

To use it, download MailtoMutt, drop somewhere logical (Applications, maybe?), and then open Apple Mail, and in the Preferences, select MailtoMutt as your preferred mail application.

The code will be released under the GPL as soon as I know ed2k helper's licensing is OK with it. I stole the event handler registration from there. I also stole the url unescaping from iJournal, and under the BSD license.

Known bugs: there's a leak (i think it's not my fault) with the AppleScript object, and unicode text is not properly escaped for the AppleScript (it doesn't work with anything that you can't inline into AppleScript between two double quotes). There's also a small quirk in the icon -- it's fixed but i don't feel like rebuilding.

[robg adds: I haven't tested this hint, as I'm quite happy with Mail ... according to the current poll, though, there are at least eight of you that might be interested in this one! :) ]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[13,634 views]  

Get mailto URLs to open in mutt | 4 comments | Create New Account
Click here to return to the 'Get mailto URLs to open in mutt' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get mailto URLs to open in mutt
Authored by: lee1 on May 25, '04 01:50:09PM
I use mutt and I wrote a crude Applescript to do the same thing, but I intend to try out your program - thanks for sharing! (The hardest part of my effort was getting the compiled Applescript registered as the appropriate url handler - and to do this sort of thing, you can use the free RCDefaultApp, rather than opening Mail. This is convenient for those of us who have already trashed Mail.)

[ Reply to This | # ]
Get mailto URLs to open in mutt
Authored by: nothingmuch on May 26, '04 09:53:15AM

I was always sure the way telnet: URLs worked would allow me to do this, and I tried some of the meanest hackeries ever... Never worked though.

I wrote this mainly to design the icon and learn some Objective-C.



[ Reply to This | # ]
Bugs bugs bugs
Authored by: nothingmuch on May 26, '04 09:50:28AM
I introduced a silly bug when I tried to handle ?subject=foo more gracefully.

Sorry!

The source code is also available as tar.gz and tar.bz2, for all who want it.

[ Reply to This | # ]

Website
Authored by: nothingmuch on May 26, '04 11:16:01AM
I set up a simple a simple website for MailtoMutt

Last spam for today!

[ Reply to This | # ]