Re: UrlView strangeness
On Tue, Feb 05, 2002 at 07:09:40AM +0100, Alexander Steinert decreed: I use mutt which uses urlview to present a list of url's in a message. Lately, sometimes some of the lines in that list are blank (sometimes they're *all* blank). If I count the url's in the message and arrow down to the appropriate blank line it fires up lynx and takes me where I want to go. Has anyone else experienced this? I can't solve your specific problem, but you might be interested in what I did. Feel free to ask, if something isn't clear. Since I was not satisfied with urlview (just URLs, no context), I defined 2 keybindings in .muttrc macro index \cb |formail -I \\ | txt2html.py $HOME/tmp/tmp.html\n!links $HOME/tmp/tmp.html\n macro pager \cb ...[the rest is the same]... The script txt2html.py: #! /usr/bin/env python txt2html - Convert plain text to html with urls as links. Usage: txt2html in.txt out.html [snip] ---end quoted text--- Also check out mhonarc in stable, testing and unstable. It's specifically geared to reformatting email as HTML with url's as links. Cheers, Steve -- \_O \_O \_O ~~~ Steve Cooper Redmond, WA
Re: UrlView strangeness
I use mutt which uses urlview to present a list of url's in a message. Lately, sometimes some of the lines in that list are blank (sometimes they're *all* blank). If I count the url's in the message and arrow down to the appropriate blank line it fires up lynx and takes me where I want to go. Has anyone else experienced this? I can't solve your specific problem, but you might be interested in what I did. Feel free to ask, if something isn't clear. Since I was not satisfied with urlview (just URLs, no context), I defined 2 keybindings in .muttrc macro index \cb |formail -I \\ | txt2html.py $HOME/tmp/tmp.html\n!links $HOME/tmp/tmp.html\n macro pager \cb ...[the rest is the same]... The script txt2html.py: #! /usr/bin/env python txt2html - Convert plain text to html with urls as links. Usage: txt2html in.txt out.html import sys, re url_rexp = re.compile(r(http|https|ftp)://[-a-zA-Z:0-9./#%+~_?=()@]+) def replace(match_object): url = match_object.group(0) return a href=%(url)s%(url)s/a % vars() txt = sys.stdin.read() html = !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0//EN html head meta http-equiv=Content-Type content=text/html; charset=iso-8559-1 titleConverted by txt2html/title /head body pre %s /pre /body /html % url_rexp.sub(replace, txt) sys.stdout.write(html) Stony
UrlView strangeness
I use mutt which uses urlview to present a list of url's in a message. Lately, sometimes some of the lines in that list are blank (sometimes they're *all* blank). If I count the url's in the message and arrow down to the appropriate blank line it fires up lynx and takes me where I want to go. Has anyone else experienced this? -- We recognize the right of every man to perform services for himself or to serve others according to conditions arrived at through free bargaining. Communism denies this right, since it places all services in the hands of an arbitrary, central authority. -- Frédéric Bastiat (1801-1850) Rick Pasotto[EMAIL PROTECTED]http://www.niof.net
Re: UrlView strangeness
On Mon, Feb 04, 2002 at 07:35:08PM -0500, Rick Pasotto wrote: I use mutt which uses urlview to present a list of url's in a message. Lately, sometimes some of the lines in that list are blank (sometimes they're *all* blank). If I count the url's in the message and arrow down to the appropriate blank line it fires up lynx and takes me where I want to go. Has anyone else experienced this? Had this problem for a time. But it just went alway. Running Sid. Maybe it was corrected during an upgrade. -- Kevin C. Smith | Guns don't kill people, bullets do! [EMAIL PROTECTED] | Guns just make them go real fast.