Alexander wrote:
> I'm using a trick like yours with exim 4.50 to remove/add
> header if virus was detected. But I carry out one interesting
> issue: header Subject is always being added twice. I wrote
> about this issue here some monthes ago, but nobody can give a
> sane explanation. Can you take a look on headers after
> modification? How many Subject: header do you see? Thanks.
No problems here - been using this method for over a year now, never a
double Subject: header.
manual_delivery:
driver = smtp
multi_domain = no
size_addition = -1
retry_use_local_part = yes
headers_remove = Subject
headers_add = X-Delivered-To:
<${local_part}@${domain}>\n\
Subject: ${if and {{first_delivery} {eq
{$header_X-Spam-Flag:}{YES}}} {*SPAM* $bheader_Subject:}{$bheader_Subject:}}
Then again, note the use of "first_delivery".
Eli.