On 10/5/06, Chuck <zaphod(_at_)tdl(_dot_)com> wrote:
I need to trim down 100k bounce messages, but make SURE the e-mail
address that bounced is not trimmed out of them. SO a fixed X lines
truncate will not work. i need to search on a string theat is guaranteed
to be there after the email address, strip content length heders, and
truncate everything after that unique string.
furthermore, i need to do this without temp files of any kind. the
instant the magic string shows, the e-mail up to that point needs to be
writtem tthe normal mailbox, but no further.
Hi Chuck,
Sed is what you want:
sed '/what you want to match/,$d'
--
-- Matt Dunford -- zenmatic(_at_)gmail(_dot_)com
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail