Wednesday, November 7, 2012

Mutt: Viewing URL On Your Favorite Browser

On this past few weeks, I've been back using mutt. And this time, with much advanced configuration. One of its configuration is opening URL inside emails on your favorite browser. The requirement is simply using urlview that you can download from here (I'm using version 0.9), extract and compile it. Then add this config to your .muttrc file:
macro index \cu |urlview\n      # simulate the old browse-url function                                                                                                           
macro pager \cu |urlview\n
Also, you need to add ~/.urlview and put this line:
REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
COMMAND <your-browser> %s

After all done, try to open one email in your mutt. Then in view mode, press ctrl-u and urlview will listing all available URL inside that email. You just have to choose one and press Enter, and your browser will automatically open and load that URL.
 

No comments:

Post a Comment

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)