Re: [exim] how to check a message header for being empty

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Michał Giżyński
Datum:  
To: exim-users
Betreff: Re: [exim] how to check a message header for being empty
W dniu 04.10.2014 16:24, Jeremy Harris pisze:
> On 03/10/14 22:06, lee wrote:
>> And it doesn't work in that messages with an empty Subject: header are
>> not detected.
>>
>> What's the condition I need to use to detect an empty header?
> Do you mean a missing Subject (warning, some MUAs might show
> this as an empty one)?
>
>    ${if !match {$message_headers}{(?m)^Subject:}}

>
> Or a Subject header that has nothing after the colon?
>
>    ${if eq {$h_subject:}{}}

This one also should work:
condition = ${if !def:h_subject: {1}}