On Fri, Oct 26, 2001 at 12:43:16AM -0700, Andrew Edelstein wrote:
On Fri, Oct 26, 2001 at 12:55:56AM -0400, Paul Chvostek wrote:
:0 c
* ^From:(_dot_)*BreakingNews(_at_)CNN(_dot_)COM
* ^Subject:.*CNN Breaking News
| (
printf "From: BreakingNews(_at_)CNN(_dot_)COM\n" ; \
printf "To: pageraddress(_at_)provider(_dot_)com\n" ; \
printf "Subject: News\n\n" ; \
sed -e '1,/^$/ d' | awk
'BEGIN{a=0}$1=="--"{a=1}a==1{print}$0~/^$/{nextfile}'
) | $SENDMAIL -t
Oy vey, that's heinous.
:0fb
* ^From:(_dot_)*breakingnews(_at_)cnn\(_dot_)com
* ^Subject:.*Breaking News
|grep '--'
:0A:
!pager(_at_)address
Heinous, but it does allow for multiple lines of text, which a simple
grep will not do. If the text is:
-- Ernie commits suicide after learning of
Bert's treason, vows revenge from the afterlife
then you'd never know what really happened.
I don't know an easier way to generate a custom header, but the
aforementioned sed script would only be a few statements long.
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Development / Abuse / Whatever vox: +1 416 598-0000
IT Canada http://www.it.ca/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail