[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] Setting up a maybe_spam folder



On Thu, Feb 05, 2004 at 06:01:41PM -0500, Jim Smith wrote:
> I tried to set my procmail file to sort email with a spam score up to 9 into
> a maybe_spam folder and all other spam above 9 goes to the spam folder. I
> tried the rule below and a few other guesses but nothing I tried worked. Can
> someone give me the correct recipe to create a maybe_spam folder?
> =================================
> :0:
> * ^X-Spam-Status: Yes, hits==\/[0-9]+

should be:

* ^X-Spam-Status: Yes, hits=\/[0-9\.]+

One fewer '=' sign and a dot (scores can be non-integers).

Then, you need to check the $MATCH variable. Here's a complete recipe:

<cut here>
MAXSPAM=9

:0
* ^X-Spam-Status: Yes, hits=\/[0-9\.]+
{
    :0:
    * $ -${MAXSPAM}^0
    * $ ${MATCH}^0
    $HOME/spam

    :0:
    $HOME/maybe_spam
}
</cut here>


Scott
-- 
Scott Wiersdorf
scottw@xxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: