Re: [exim] Discard mail to certain recipients if the subject…

Góra strony
Delete this message
Reply to this message
Autor: George L. Yermulnik
Data:  
Dla: exim-users
Temat: Re: [exim] Discard mail to certain recipients if the subject matches a string
Hello!

On Thu, 06 Apr 2017 at 13:57:36 (+0300), Александр Кириллов via Exim-users wrote:

> condition = ${if match {$h_subject:}{Commit.by}}


> I probably spent more time trying to figure out how to match a single space
> in "Commit by" and didn't succeed yet. This is a minor thing but I would
> like to know the answer and go to bed a happy man. )


Literally "Commit by" should work (RHS is treated as a regex):
    condition = ${if match {$h_subject:}{Commit by}}


--
George L. Yermulnik
[YZ-RIPE]