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

Re: [vps-mail] Fw: procmail help needed



On Fri, Dec 12, 2003 at 09:27:59AM -0700, Scott Wiersdorf wrote:
> 
> You've nailed it yourself. Try this:
> 
> :0
> * ^X-Spam-Status:[ 	]*yes
> {
>    ...
> }

Or you can use the non-word macros \< and \>. This is a different
heuristic and may still yield false positives. For example, if you had
a yes somewhere in the test line:

    X-Spam-Status: No, foo-yes, othertests, ...

it would trigger because - and , match \< and \>. Anyway, here it is:

    :0
    * ^X-Spam-Status:.*\<yes\>
    {
      ...
    }

>From procmailrc:

  \< or \>  Match  the  character  before  or  after a word.
            They are merely a shorthand for `[^a-zA-Z0-9_]',
            but  can  also match newlines.  Since they match
            actual characters, they  are  only  suitable  to
            delimit  words, not to delimit inter-word space.

Scott
-- 
Scott Wiersdorf
scottw@xxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
======================================================================


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