[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] Fw: procmail help needed
- Subject: Re: [vps-mail] Fw: procmail help needed
- From: Scott Wiersdorf <scottw@xxxxxxxxxxxx>
- Date: Fri, 12 Dec 2003 09:27:59 -0700
> From: Tim Gorter <email@xxxxxxxxxxxxxxxx>
>
> Hello,
>
> I have a problem with a procmail script, which I have deduced to be
> the following. It has been working fine, but in the last few days a
> tests=BAYES. now my problem is that in procmail I have following
> recipe (is disabled at the moment, as it is interfering)
>
> ##### DISABLED: Spam to bounce #####
> 29: # :0
> 30: # * ^X-Spam-Status:.*yes
> 31: # {
> 32: # EXITCODE=77
> 33: # HOST="no.address.here"
> 34: # }
>
> from the header of the offending emails..
>
> X-Spam-Status: No, hits=-0.5 required=5.0
> tests=BAYES_30,PRIORITY_NO_NAME
> version=2.54
>
> So it is seeing the baYES_30 (I believe) as being the "yes" behind
> X-Spam-Status:
> even though it is on a new line. Anyway I can limit the procmail
> recipe to look only at a Yes directly behind "X-Spam-Status:"?
You've nailed it yourself. Try this:
:0
* ^X-Spam-Status:[ ]*yes
{
...
}
Between the [ and ] are a space (' ') and a tab (' '). Because
the dot matches anything (except newlines), it goes all the way to the
baYES part like you suspected. By changing the . to [ ] it will
only match whitespace characters.
Scott
--
Scott Wiersdorf
scottw@xxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
======================================================================
Main Index |
Thread Index