procmail
[Top] [All Lists]

stripping headers only from msgs in an mbox?

1999-12-13 23:34:02
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


<Prev in Thread] Current Thread [Next in Thread>