On Sat, Feb 09, 2008 at 10:40:56AM -0500, [EMAIL PROTECTED] wrote:
> 
> I need to clean up some of my mailboxes by removing data from headers and
> thought I could do this with a text factory. Unfortunately some of these
> headers span over multiple lines, which aren't obvious to describe as
> R.E. Typically:
> 
> Received: from ...
>       by ...
>       (envelope-from ...
>       id ...
>       for ...
> 
> where the extra lines *always* start with a tab character. I just want to
> get rid of all 5 lines above as a block.

Find
^Received.*\r(?:\s.*\r)*

Replace



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:


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