procmail
[Top] [All Lists]

Regex trouble:

1998-02-09 17:57:14
B


The manual for 3.10 says that procmail supports sthe same set
of regex's as egrep.

stanza in procmailrc:

LOG="Shout \$\$\$ "
:0 B:
* -500^0
* +200^1 \!\!\!\!
* +200^1 ^[A-Z0-9'!:;>-<. #$]{10,}$ 
* +200^1 \$\$\$
/var/spool/spam/sales 


Excerpt from email

THIS IS A ONE TIME MAILING!!!!!

YOU WILL NOT RECEIVE THIS MESSAGE AGAIN!


"EARN WHILE YOU LEARN-------FREE SOFTWARE"


Excerpt from log file:

procmail: Assigning "filter=Shout $$$ "
procmail: Score:    -500    -500 ""
procmail: Score:     400    -100 "\!\!\!\!"
procmail: Score:       0    -100 "^[A-Z0-9'!:;>-<. #$]{10,100}$"
procmail: Score:       0    -100 "\$\$\$"


Ok so why isn't my second regex matching.
(Looking for lines that have mroe than 10 characters without
any lowercase)  Does procmail not implement the {n,m} construct?
(My egrep does.)


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