Hossein Movahhedian schreef:
The following would catch exactly what's been written in compact form:
* ^From.+"James".+<\*{7}[^>]+@>
You obviously didn't test it with procmail before making that claim.
(1) procmail's egrep doesn't know {n,m} repetitions.
(2) The From_ header is highly unlikely to contain something like
'"James"'.
Example of such a test:
#test.rc
SHELL = '/bin/sh'
DEFAULT = '/dev/null'
VERBOSE = 'on'
HEADERLINE = 'From: "James" <*******X(_at_)example(_dot_)com>'
:0
* HEADERLINE ?? ^From:.*\"James\".*<\*\*\*\*\*\*\*+[^(_at_)]+@[^>]+>
{ var = TRUE }
Test with:
$ procmail ./test.rc < /dev/null
--
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