procmail
[Top] [All Lists]

Re: Faulty Recipe?

2002-08-05 13:54:12

Forgive my naivete, I may be wrong, but isn't the recipe below an "anded"
recipe instead of an "or" recipe?

Shouldn't it be something like:

:0:
* ^(to|from|cc)(_dot_)*procmail(_at_)lists\(_dot_)RWTH-Aachen\(_dot_)DE
  ^(to|from|cc)(_dot_)*procmail-users(_at_)procmail\(_dot_)org
Proc

??

Curtis

Udi Mottelo said:
On Mon, 5 Aug 2002 ant(_at_)ed(_dot_)ac(_dot_)uk wrote:

Hello,
     Can anyone see why the following recipe isn't picking up the
following email headers?
cheers
ant

:0
*  ^To:(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE(_dot_)*|\
*  ^To:(_dot_)*procmail-users(_at_)procmail\(_dot_)org(_dot_)*|\
*  ^Cc:(_dot_)*procmail-users(_at_)procmail\(_dot_)org(_dot_)*
Proc

      The "\" make the three conditions to be one long condition:

*  ^To:(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE(_dot_)*|*  
^To:...|*  ^Cc:...

      Are you sure that you want it?  If yes:

* 
^(To:(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE|^To:...|Cc:...)
                                      ^^
      Note that you do not need the ".*" at the end of the strings.
      It will be more clear if you use score:

:0
* 1^0 ^To:(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE
* 1^0 ^To:(_dot_)*procmail-users(_at_)procmail\(_dot_)org
* 1^0 ^Cc:(_dot_)*procmail-users(_at_)procmail\(_dot_)org
Proc

From: "[ISO-8859-15] H.-J.F?er" 
<hjfoerster(_at_)physiology(_dot_)rwth-aachen(_dot_)de>
To: procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
Date: Mon, 5 Aug 2002 13:49:29 +0200
Subject: Probleme mit Procmail

From: Hanspeter Roth <hanspeter_roth(_at_)hotmail(_dot_)com>
To: procmail-users(_at_)procmail(_dot_)org
Date: Sat, 03 Aug 2002 15:11:58 +0200
Subject: equivalent for backreference \n


      I hope that the  From: From:  above are not part of the rc file
      (:-)

Bye,
Udi

_______________________________________________
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>