Re: [exim] Rejecting RunTogetherSubjects

トップ ページ
このメッセージを削除
このメッセージに返信
著者: John Jetmore
日付:  
To: Karl Schmidt
CC: exim-users
題目: Re: [exim] Rejecting RunTogetherSubjects
On Thu, Apr 7, 2011 at 5:32 AM, Karl Schmidt <karl@???> wrote:
> deny    condition = ${if match{$h_subject:}{\S{25}}
>        message = irritating
>
>
> This should work - but isn't? I tested it with PCRE via:
>
> Note that it should be \w not /w and \S is anything non white-space.
>
> Am I missing something?
>


The raw form works:

g3 0 /home/jj33 > exim -be
> ${if match{1234567890123456789012345}{\N\S{25}\N}{Yes}{No}}

Yes
> ${if match{asdf}{\N\S{25}\N}{Yes}{No}}

No

The example you showed seems to be poorly formed (If nothing else it's
missing a closing "}". Try adding the return values and quoting the
regexp:

deny    condition = ${if match{$h_subject:}{\N\S{25}\N}{Yes}{No}}
       message = irritating