At 2:18 PM -0800 11/28/01, PSE-L(_at_)mail(_dot_)professional(_dot_)org (Professional
Software Engineering wrote:
At 15:43 2001-11-28 -0600, Justin Shore wrote:
:0 :
* ? formail -x"From" -x"From:" -x"Sender:" \
-x"Reply-To:" -x"Return-Path:" -x"To:" \
-x"Received:" \
| egrep -is -f ~/ralsky.list
test
That matches the message but doesn't add the X-Spam:. This will
make the change for me "| formail -I "X-Spam:"" but I don't know
how to then direct that to a spool? Any suggestions?
:0:
* ? formail -x"From" -x"From:" -x"Sender:" \
-x"Reply-To:" -x"Return-Path:" -x"To:" \
-x"Received:" \
| egrep -is -f ~/ralsky.list
| formail -I "X-Spam: identifier" >> mailbox
or if you prefer:
:0
* ? formail -x"From" -x"From:" -x"Sender:" \
-x"Reply-To:" -x"Return-Path:" -x"To:" \
-x"Received:" \
| egrep -is -f ~/ralsky.list
{
:0f
| formail -I "X-Spam: identifier"
:0:
mailbox
}
Sean,
Many thanks for the response. I think I understand what's
going on in these two recipes. I like the latter one personally
because I see if does file locking. The first one, I'm not so sure
on. Does "mailbox" get locked when STDOUT is directed to it?
Anyhow, I'll give that a try shortly. Thanks again
Justin
--
--
Justin Shore, ES-SS ES-SSR Pittsburg State University
Network & Systems Manager Kelce 157Q
Office of Information Systems Pittsburg, KS 66762
Voice: (620) 235-4606 Fax: (620) 235-4545
http://www.pittstate.edu/ois/
Warning: This message has been quadruple Rot13'ed for your protection.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail