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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: George L. Yermulnik
Dátum:  
Címzett: exim-users
Tárgy: 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]