procmail
[Top] [All Lists]

Re: what does 1^0 mean ?

2001-12-19 23:14:37
Tastlessly following up on myself...

On 19 Dec, Don Hammond wrote:
| On 19 Dec, parv wrote:
|| [...]
| 
|| 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
 
Better than the last suggestion would be:

:0:
* -1^0
*  1^0 ^To:[ \t]*("")?(<>)?$
*  1^0 ^Cc:[ \t]*("")?(<>)?$
*  2^0 ^From: .*(allexecs\.com|allsongs(_at_)earthlink\(_dot_)net)
*  2^0 ^X-RWTH-SpamWarning: .+
*  2^0 ^Received: .*(resumerabbit\.com|from .*(bora\.net|btamail\.net\.cn)
Spam/spam

This succeeds if any of the last 3 conditions match, but otherwise
requires both of the first 2 match. It's fine for this simple example,
though it would seemingly become unbearable, if not unworkable*, for
more than two "groups" of conditions. 

* It's been too long since I took logic and I'm too beat to think about
it.

-- 
Reply to list please, or append "6" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.


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