At 13:15 2004-02-13 +1100, Marvin R. Pierce wrote:
I need all mail from this header to go to $MAILDIR/spam
Received: from boxer.golftime.com.au (boxer.digerati.com.au
[203.55.204.129] (may be forged)) by mail009.syd.optusnet.com.au
(8.11.6p2/8.11.6) with ESMTP id i1BF5I131959 for
<mrpierce(_at_)emailaddress(_dot_)com(_dot_)au>; Thu, 12 Feb 2004 02:05:18 +1100
I've tried this without success:
:0
* ^From:.*(boxer\.com\.au|boxer\.digerati\.com\.au)
$MAILDIR/spam
Four things:
1. If you're writing to a MAILBOX FILE, add a lockfile flag.
2. $MAILDIR/ is the CWD, so it's unnecessary to specify
3. You're using From: not Received:
4. To catch an optional hostname, try:
* ^Received:.*boxer\.([a-z0-9_-]+\.)?com\.au
Though really that's a domain, so you have a common hostname on
various domwins you're trying to contend with, but the basis is the
same.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail