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.
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 """%(url)s""" % vars() txt = sys.stdin.read() html = """ Converted by txt2html %s """ % url_rexp.sub(replace, txt) sys.stdout.write(html) Stony
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