shouldn't that be:
* !^X-Spam-Level
Kevin
On Tuesday 24 August 2004 13:40, Darragh Bailey wrote:
Having problems getting a procmail receipe right
:0 wc
* ^X-Spam-Level: (\*){1,4}$
spam/ham-check
The idea is to catch any mails that have a spam score of 1-4 inclusive and
place a copy in a mail folder spam/ham-check. That way I hope to include all
the ham mails that show up as border line or are picking up scores where they
shouldn't and make sure they get added to the bayesian filters as ham.
Only thing is, the receipe above isn't working correctly
I know that procmail regular expressions are supposed to be the same as in
egrep but are not quite the same and that
cat testmail | grep -e "^X-Spam-Level: \(\*\)\{1,4\}$"
detects the mail correct, and I've also tried the exact with the slashes
included in the receipe and they don't work. I was under the assumption that
for the likes of ( ,) ,{ & } to be recognised as meta characters by procmail
that you didn't escape them unless you wanted the literal versions, which is
why I assumed that the version that I've given first is the correct method.
Any suggestions? I don't see anything wrong with the receipe but use of
cat testmail | procmail
does not result in a copy of the mail being placed in my spam/ham-check
folder. And before anyone suggests are the mail folders being referenced
correctly, my receipe for filtering off spam to spam/spam and spam/extra
both work fine, so unless procmail has some problem dealing with the hyphen
in the folder name I don't think the problem is there.
Is the problem the {1,4} part? if so is there another way to get the same
result or do I need to write it out the long way such as
\*|\*\*|\*\*\*|\*\*\*\* in order to have the receipe work as desired?
--
Darragh
"Nothing's foolproof to a sufficently talented fool"
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!