seems to me it would be smarter and easier just to not have something
printed if you are going to remove them...
but then i always try to take the easy way out of everything :)
----- Original Message -----
From: "Douglas J. Hunley" <dhunley(_at_)columbus(_dot_)rr(_dot_)com>
To: "David W. Tamkin" <dattier(_at_)ripco(_dot_)com>
Cc: "Procmail" <procmail(_at_)informatik(_dot_)RWTH-Aachen(_dot_)de>
Sent: Saturday, October 07, 2000 9:16 AM
Subject: Re: is there any way
"David W. Tamkin" wrote:
Douglas Hunley asked,
| to have a procmail recipe remove certain lines contained within the
body
| of an email?
| Example email:
| host a responded successfully
| host b did not respond
| host c responded successfully
| host d responded successfully
|
| is there any way to get procmail to stip out the lines that have
| 'responded successfully' in them and then deliver the mail to the
normal
| maildrop?
Yes:
:0Bbfw
* responded successfully$
| grep -v 'responded successfully$'
and what happens if _every_ line matches that grep? do I get an empty
email? or is procmail smart enough to not deliver the resulting message?
thanks for this info! made my life a lot easier...
--
Douglas J. Hunley (Linux User #174778)
http://hunley.homeip.net/
panic("Tell me what a watchpoint trap is, and I'll then
deal with such a beast...");
2.2.16 /usr/src/linux/arch/arch/sparc/kernel/traps.c
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail