On Tue, Aug 24, 2004 at 01:40:53PM +0100, 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.
...
> 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?
:0 wc
* !^X-Spam-Level: \*\*\*\*\*
spam/ham-check
Should do what you want. The rule will filter all mails that don't have
at least 5 asterisks.
--
Colm MacCárthaigh Public Key: colm+pgp at stdlib.net
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!