Re: [exim] if match question

Top Page
Delete this message
Reply to this message
Author: Dave Evans
Date:  
To: exim-users
Subject: Re: [exim] if match question
On Mon, Aug 24, 2009 at 12:27:48PM +0400, Vasiliy G Tolstov wrote:
> Hello again.
>
> I have this
> logwrite = ${if match{$h_date:}{/Mon|Tue|Wed|Thu|Fri|Sat|Sun/}
> {match}{notmatch}}
>
> Then the message have Date: Mon, 24 Aug 2009 12:25:59 +0400
>
> In exim log a got notmatch, why? regular expression is valid (tested
> with pcretest)...


Lose the "/" characters. Currently you're looking for "/Mon", not "Mon".
(Likewise "Sun/").

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey