This is the stable version of urlview I'm currently using: blue@mythdrannor blue $ emerge -s urlview Searching... [ Results for search key : urlview ] [ Applications found : 1 ] * net-misc/urlview Latest version available: 0.9 Latest version installed: 0.9 Size of downloaded files: 45 kB Homepage: http://www.mutt.org Description: extracts urls from text and will send them to another app blue@mythdrannor blue $ Everytime I call it from inside of mutt or as an independent helper program, my browser starts but it often tells me that page does not exist or shows no output at all. I tested it with lynx 2.8.4.1c, links 2.1_pre9 and elinks 0.4.2. I didn't test it with a graphical browser, so I can't tell if it behaves correctly. Problem seems to be an extra newline added by urlview to the string passed to url_handler.sh. This is taken from urlview launched in an xterm (I wasn't able to see it in console): blue@mythdrannor blue $ urlview test.txt Executing: url_handler.sh 'http://www.reuters.com/newsArticle.jhtml?type=technologyNews&storyID=3095377 '... blue@mythdrannor blue $ cat test.txt | urlview Executing: url_handler.sh 'http://www.reuters.com/newsArticle.jhtml?type=technologyNews&storyID=3095377 '... blue@mythdrannor blue $ As you can see, there's an extra newline character at the end of the string. I'm quite sure this is the problem, because if I try to hit backspace before pressing Enter to launch browser the final '7' digit doesn't get cancelled and everything works fine.
Created attachment 14898 [details] The test file I used Use this to reproduce the behaviour I described
Created attachment 17143 [details, diff] Fixes newline-ignorant regex. If the line in the text file ends with a URL, the newline at the end is included in the processed URL. This patch fixes the URL that matches the newline.
YEEEEEEEEEES! Thank you, thank you, thank you. :-)
did you send this upstream ?
I thought I had but I just checked, and I hadn't. Done now.
I included the patch, because urlview was last updated in 2000 and the previous version was released 1998.