procmail
[Top] [All Lists]

Re: all-caps in subj

2000-08-16 14:23:41
From: "David W. Tamkin" <dattier(_at_)ripco(_dot_)com>

Dallman tried,

|   :0  # all-caps in 3+ words of SUBJ + SPAMISH body phrase is suspect
|   *    -300^0
|   * $ D 100^1 SUBJ ?? ()[$WHITESPACE][^a-z]+([$WHITESPACE]|$)
|   * $ B ?? $SPAMISH
|   { RECIPE = "${RECIPE:+$RECIPE }UBE_20" }

There's no "D" modifier on a single condition.  If you have some regexps

Ah.  I actually suspected that might be, but was too tired to figure it out.
Treading on new ground with my first scoring recipe didn't help my confidence.
Thanks much - it is now working as desired.



which must be tested sensitively to case and some insensitively to case,
you have to put them into separate recipes, like this:

  :0D otherflags
  * case-sensitive conditions
  { }
  :0A otherflagsbutnotD
  * case-insensitive conditions
  action

or

  :0D otherflags
  * case-sensitive conditions
  { 
   :0 otherflagsbutnotD
   * case-insensitive conditions
   action
  }

Or you could do the case-insensitive tests first, whichever is more efficient
for the situation.

-- 
dman+noacks(_at_)nomotek(_dot_)com

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