Re: [exim] headers_add produces duplicate header

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Yves Goergen
Date:  
À: Jeremy Harris, exim-users
Sujet: Re: [exim] headers_add produces duplicate header
Oops, I forgot to mention another thing. That's already in place. Here's
more of my config around the headers_add block:

> headers_remove = X-Virus*:X-Virus-Scanned:X-Spam-DCC:X-SpamChecker-Version:\
>     X-Spam-Status:X-Spam-RBL:X-Spam-Eval\
>     ${if !eq {$acl_VAR_SUBJECT}{} {::Subject}{}}\
>     ${if !eq {$acl_VAR_SPAM_SCORE}{} {::X-Spam-Score}{}}\
>     ${if !eq {$acl_VAR_SPAM_REPORT}{} {::X-Spam-Report}{}}

>
> headers_add    = ${if !eq {$acl_VAR_SUBJECT}{} {Subject: $acl_VAR_SUBJECT\n}{}}\
>     ${if !eq {$acl_VAR_SPAM_SCORE}{} {X-Spam-Score: $acl_VAR_SPAM_SCORE\n}{}}\
>     ${if !eq {$acl_VAR_SPAM_REPORT}{} {X-Spam-Report: $acl_VAR_SPAM_REPORT\n}{}}


So the Subject header should already be removed. Why is it suplicated
anyway?

Yves

________________________________________
Von: Jeremy Harris
Gesendet: Sa, 2017-05-27 12:49 +0200
On 27/05/17 09:31, Yves Goergen wrote:
> Why is the Subject header duplicated in incoming messages?


You're adding one. Probably you also want to remove the
original one.