procmail
[Top] [All Lists]

Re: Sanity check please

2005-04-24 10:25:37
Professional Software Engineering:
Hossein Movahhedian:

* ^From.+"James".+<\*{7}[^>]+@>

er, that (7) bit is meaningless to procmail (and doesn't match the
syntax for a standard grep count operatior either).
Also, as I pointed out previously, since From_ (the envelope header
used locally) doesn't bear the text name of the user, there's no
point to trying to match without the header-trailing colon.

OK, so let's get the {number[, number]} and the postmark From_ 
errors out of the way and talk about:

  * ^From:.+"James".+<\*\*\*\*\*\*\*[^>]+@>

[...] the regexp above [...] would match some number of asterisks, 
followed by one or more of  a NON-wordbreak character - not 
necessarily an asterisk

The [^>]+ is supposed to mean: a run of non-greater-than-signs


beyond seven, they're not necessarily asterisks.

That was in the specs.

-- 
Grtz, 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

<Prev in Thread] Current Thread [Next in Thread>