Re: Re[2]: [exim] Blocking mails based on Subject

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Peter Bowyer
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: Re[2]: [exim] Blocking mails based on Subject
On Fri, 10 Sep 2004 15:24:46 +0200, Graham Dodd <g.dodd@???> wrote:
> Hello John,
>
> Friday, September 10, 2004, 1:52:41 PM, you wrote:
>
> JB> Graham Dodd wrote:
>
> >>Hello exim-users,
> >>
> >> I'm trying to block a bouncing mail (story to follow later) based on the subject.
> >>
> >>I have the following:
> >>
> >> drop message = "SR Loop"
> >> condition = ${if eq {$header_subject}{AW: BELL DELIVERY DATES}{yes}{no}}
> >>
> >>But it doesn't work, can someone explain what I am doing wrong
> >>
> >>
> >>
> JB> You've missed the : off $header_subject: ?
> JB> John
>
> thanks John, that was the problem
>
> I also tried to use "contains" so that I only have to match BELL but I couldn't figure out the syntax.
>
> Could you send me an example using "contains" as this would be easier to use.


You probably want 'match' :

${if match {$header_subject:}{BELL}{yes}{no}}

Peter