On Sun, Feb 10, 2008 at 10:54:18PM +1100, David Nicholls wrote:
> Ronald J Kimball wrote:
> 
> >If you have a lot of changes you want to make, you might consider using the
> >formail command-line utility.  Removing all the Received headers would be:
> >  formail -I Received:
> 
> Is there a way to get formail to process multiple consecutive messages 
> in a (Thunderbird) mailbox file?  Running it (for me) only processes the 
> first set of headers.

Oops, I forgot that part.  -s tells formail to split up the input and
process it as multiple messages.  It must be the last option:

formail -I Received: -s

 
> I want to take a mailbox file and strip all but a few headers, leaving 
> those headers and the accompanying text, for the multiple messages 
> contained in the mailbox file.

Okay, you want to "extract" those headers - at least, that's what formail
calls it; that's -X.  You probably want to keep the message body as well;
that's -k.  For example:

formail -k -X From -X From: -X Subject: -s

(From is the envelope header - you want to keep that to preserve mbox
format.)


HTH!
Ronald

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to