On Don, Feb 14, 2002 at 09:31:57 +0100, Nick Wilson wrote:
> Hi everyone,
hoi nick,
> I've just had to print an entire mbox file, it wasn't that many messages
> but it was a painful process as I didn't think of a way to only print
> the /actuall/ message bodies (and perhaps TO, From)
>
> I just did: $ lpr mymboxfile
>
> What might I have done?
just give formail(1) a try. it should be delivered with your procmail
package. format your mbox with it and pipe it to lpr.
FORMAIL(1) FORMAIL(1)
NAME
formail - mail (re)formatter
DESCRIPTION
formail is a filter that can be used to force mail into
mailbox format, perform `From ' escaping, generate auto-
replying headers, do simple header munging/extracting or
split up a mailbox/digest/articles file. The mail/mail
box/article contents will be expected on stdin.
If formail is supposed to determine the sender of the
mail, but is unable to find any, it will substitute
`foo@bar'.
If formail is started without any command line options, it
will force any mail coming from stdin into mailbox format
and will escape all bogus `From ' lines with a `>'.
[snip]