gary(_at_)Intrepid(_dot_)Com (Gary Funck) writes:
This may be a FAQ - but what's the easiest way to strip only the
headers from all the e-mails in an mbox? Let's say, I want to
send only the headers, collected together in an mbox format,
for a group of messages already deposited in an mbox.
Something like this?
formail -s sed -e '/^$/q' < foo.mbox > foo_hdrs.mbox
One process, not N:
formail -X "" -s < foo.mbox > foo_hdrs.mbox
Beware: any Content-Length: headers in that pile of messages will not
contain the correct value (zero), so any future splitting should include
the -Y flag.
Philip Guenther