procmail
[Top] [All Lists]

Re: Procmail Received From Recipe failure

2004-02-12 20:46:52
Sean,
Nancy in the Procmail tips site says that a lock file is not necessary
on MAILDIR format type mailboxes. You say it is. Which way is correct?
Marvin
---
On Fri, 2004-02-13 at 13:38, Professional Software Engineering wrote:
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




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>