On Tue, 2016-01-05 at 20:52 +0100, Theo Buehler wrote: > On Tue, Jan 05, 2016 at 08:09:17PM +0100, Ingo Feinerer wrote: > > Hi, > > > > please find attached a new port textproc/extract_url: > > > > ---8<------------------------------------------------------------ > > --------- > > http://www.memoryhole.net/~kyle/extract_url/ > > This is a Perl script that extracts URLs from correctly-encoded > > MIME > > email messages. This can be used either as a pre-parser for > > urlview, or > > to replace urlview entirely. > > > > Urlview is a great program, but has some deficiencies. In > > particular, it > > isn't particularly configurable, and cannot handle URLs that have > > been > > broken over several lines in format=flowed delsp=yes email > > messages. Nor > > can it handle quoted-printable email messages. Also, urlview > > doesn't > > eliminate duplicate URLs. This Perl script handles all of that. It > > also > > sanitizes URLs so that they can't break out of the command shell. > > > > This is designed primarily for use with the mutt emailer. The idea > > is > > that if you want to access a URL in an email, you pipe the email to > > a > > URL extractor (like this one) which then lets you select a URL to > > view > > in some third program (such as Firefox). > > ---8<------------------------------------------------------------ > > --------- > > > > OK to import? > > This looks great, thanks. All the targets mentioned in the ports > testing guide are achieved correctly and a number of tests in my > inbox > indicate that it works just as advertised. > > I don't know if that's usually done, but I wonder whether the manual > shouldn't be patched to replace all occurrences of `extract_url.pl' > with > `extract_url' so that the examples work as they are written.
I believe there are several instances where manpages have been patched to reflect reality, yes. -- viq <vic...@gmail.com>