procmail
[Top] [All Lists]

Re: \< and \> don't quite make it

2006-09-13 03:03:33
Dallman Ross schreef:
On Wed, Sep 13, 2006 at 02:51:03AM +0200, Ruud H.G. van Tol wrote:

      AND   = 0^0

I believe that will not work, if your goal is simply to pass
on the condition and there is no other positive score.


  IF    = 9876543210^0
  OR_IF = $IF
  AND   = 0^0

  SUBJ = 'abc def'

  :0
  *$ $IF    SUBJ ?? h
  *$ $OR_IF SUBJ ?? g
  *$ $OR_IF SUBJ ?? f
  *$ $AND
  * ^From:.*john
  { TESTING }


$ procmail -m DEFAULT=/dev/null VERBOSE=y and.rc < /dev/null
procmail: [18702] Wed Sep 13 11:35:02 2006
procmail: Assigning "MAILDIR=."
procmail: Rcfile: "and.rc"
procmail: Assigning "IF=9876543210^0"
procmail: Assigning "OR_IF=9876543210^0"
procmail: Assigning "AND=0^0"
procmail: Assigning "SUBJ=abc def"
procmail: Score:       0       0 "h"
procmail: Score:       0       0 "g"
procmail: Score: 2147483647 2147483647 "f"
procmail: No match on "^From:.*john"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
  Folder: /dev/null


$ echo "From: john" | procmail -m DEFAULT=/dev/null VERBOSE=y and.rc
procmail: [22207] Wed Sep 13 11:37:18 2006
procmail: Assigning "MAILDIR=."
procmail: Rcfile: "and.rc"
procmail: Assigning "IF=9876543210^0"
procmail: Assigning "OR_IF=9876543210^0"
procmail: Assigning "AND=0^0"
procmail: Assigning "SUBJ=abc def"
procmail: Score:       0       0 "h"
procmail: Score:       0       0 "g"
procmail: Score: 2147483647 2147483647 "f"
procmail: Match on "^From:.*john"
procmail: Assigning "TESTING"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
  Folder: /dev/null

-- 
Groet, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail