script to save a particular mail file??

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Fri Mar 18 13:33:58 PST 2005


Gary Kline <kline at tao.thought.org> writes:

> 	Just thought I'd ask the list if anyone has a script to
> 	read /var/mail/<login> and grab a single file.  I just
> 	sub'd to a mailing list that is produced only in HTML.
> 	I'd like to save it to /tmp, strip it, and have it ready
> 	for lynx or links.
> 
> 	If anyone onlist has already done this, it would save me
> 	from reinventing *this* wheel.

The first thing that occurs to me is using formail (part of procmail)
and maybe metamail if formail can't extract the HTML...


More information about the freebsd-questions mailing list