LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] procmail receipe

[ILUG] procmail receipe

Kevin Philp kevin at cybercolloids.net
Tue Aug 24 15:04:44 IST 2004


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"




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell