procmail
[Top] [All Lists]

Re: about procmail regex operators

2010-03-28 12:52:23
On Sun, Mar 28, 2010 at 8:26 AM, Harry Putnam <reader(_at_)newsguy(_dot_)com> 
wrote:
LuKreme <kremels(_at_)kreme(_dot_)com> writes:

One more question:  Would that rule:
  *   1^1 [a-zA-Z0-9]

Give this subject line:

  Subject:[      ]a a

A score of 1 or 2?

It'd score it 2.  I presume, though, that you meant the above to be a
regular expression rather than a subject that literally has a pair of
square brackets in it.  Here's how you'd apply that:

:0
* ^Subject:[      ]\/.*
* MATCH ?? 1^1 [a-zA-Z0-9]
{ LOG="$MATCH contains $= alphanumeric characters
" }

____________________________________________________________
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