procmail
[Top] [All Lists]

Re: what does 1^0 mean ?

2001-12-19 19:39:47
in message <20011220030144(_dot_)B81766(_at_)i3(_dot_)atat(_dot_)at>, 
wrote Peter Pilsl thusly...

just parsing the sanitizer-procmailcode into my brain and run into several 
lines like this:

  :0
  * 1^0 SECURITY_NOTIFY_VERBOSE ?? [^ ]

While the rest of the expression is clear to me the leading '1^0'
remains a mystery. 
...

that's the (easy and sane) way to do the shortcut OR logic in 
procmailrc.  it means if current condition matches, don't run the
next condition(s), and get on w/ the "action".


talking of OR and logic, is there a way to combine OR conditions w/
AND so as not to repeat the recipe/action?  for example take these 2
recipes w/ same action...

:0:
#
#  convert '\t' to real tab in actual recipe
#
* ^To:[ \t]*("")?(<>)?$
* ^Cc:[ \t]*("")?(<>)?$
Spam/spam

:0:
* 1^0 ^From: .*(allexecs\.com|allsongs(_at_)earthlink\(_dot_)net)
* 1^0 ^X-RWTH-SpamWarning: .+
* 1^0 ^Received: .*(resumerabbit\.com|from .*(bora\.net|btamail\.net\.cn)
Spam/spam



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