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

Get mutt to open URLs in Safari UNIX
If you're a mutt user (a very popular terminal-based email application) and you would like to open URLs from your emails in Safari as opposed to viewing them with lynx or elinks (neither is bundled with OS X), here's what you can do:
  1. Get urlview either from source or fink if you don't already have it

    • Compile from source: The usual "./configure; make" works fine on OS X. Then cp urlview to somewhere that's in your $PATH (I installed it under $HOME/bin)

    • Fink: Just make sure /sw/bin is in your $PATH

  2. Add this to your .muttrc:
    macro index cb |urlviewn 'call urlview to extract URLs out of a message'
    macro pager cb |urlviewn 'call urlview to extract URLs out of a message'
    
  3. Create $HOME/.urlview and put this line in there:
    COMMAND open %s
    
  4. Re-launch mutt or source .muttrc; use Ctrl-b to list your URLs; press enter to select/open it in Safari (or your default web browser)
Note: you don't need url_handler.sh like the doc says.
    •    
  • Currently 2.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[10,499 views]  

Get mutt to open URLs in Safari | 1 comments | Create New Account
Click here to return to the 'Get mutt to open URLs in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get mutt to open URLs in Safari
Authored by: soulrider2k on May 10, '04 04:38:00PM

macro index cb |urlviewn 'call urlview to extract URLs out of a message'
macro pager cb |urlviewn 'call urlview to extract URLs out of a message'

should be:

macro index cb |urlview 'call urlview to extract URLs out of a message'
macro pager cb |urlview 'call urlview to extract URLs out of a message'

Thanks, I always wondered if we could get mutt to open web pages in safari.. I had heard about urlview... but it's one of those things you just don't get around to. :-)

---
soulrider2k



[ Reply to This | # ]