procmail
[Top] [All Lists]

Regexp problem

2003-12-08 12:32:21
I am running procmail version 3.22 under Solaris with junkfilter
version 20030115.  I am having trouble with the following
junkfilter recipe:

: 0 B
* [bcdfghjklmnpqrstvwxyz]{4,}
{ JFMATCH="$JFSEC: At least four consecutive consonants in the body" 
INCLUDERC=$JFDIR/junkfilter.match }

Then I created a procmail recipe (ahead of the junkfilter invocation recipe)
so that I was sure the problem isn't related to junkfilter:

:0 B :
* [bcdfghjklmnpqrstvwxyz]{4,}
test.junk

Neither one works:  Test mail with the string "jklm" in the body is not
sent to the file "test.junk".  Running procmail with VERBOSE=on gives:

        procmail: [1832] Mon Dec  8 10:11:51 2003
        procmail: No match on "[bcdfghjklmnpqrstvwxyz]{4,}"

So it seems that procmail regexp is broken, either in the interpretation
of the recipe or in the regexp routine .

I also tried the recipe:

: 0 B
* 
[bcdfghjklmnpqrstvwxyz][bcdfghjklmnpqrstvwxyz][bcdfghjklmnpqrstvwxyz][bcdfghjklmnpqrstvwxyz]
test.junk

But this caught all mail that contained any consonants!

As a final sanity test, I did:

egrep '[bcdfghjklmnpqrstvwxyz]{4,}' on a file containing:

jak
jkel
jklim
jklmon
jklmnu

which successfully returned:

jklmon
jklmnu

Any ideas?

Thanks,

Jon
---
Jon Brinkmann                                   Apache Point Observatory
SDSS Instrument Scientist                       2001 Apache Point Road
Internet:       brinkmann(_at_)nmsu(_dot_)edu           P.O. Box 59
URL:    http://www.apo.nmsu.edu/brinkmann/      Sunspot, NM 88349-0059

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