On 2017-06-08, Yves Goergen <nospam.l...@unclassified.de> wrote:
> 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?


list splitting  happens before variable substitution.
so headers_remove does not do what you want, and subject is not removed.

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}{}}

or this:

headers_remove = X-Virus*:X-Virus-Scanned:X-Spam-DCC:X-SpamChecker-Version:\
      X-Spam-Status:X-Spam-RBL:X-Spam-Eval:Subject:X-Spam-Score:X-Spam-Report


-- 
This email has not been checked by half-arsed antivirus software 

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to