[exim] Another hreaders_add bug

Pàgina inicial
Delete this message
Reply to this message
Autor: Marc Perkel
Data:  
A: exim-users
Assumpte: [exim] Another hreaders_add bug
ok - we can debate if it's a bug but it'd not intuitive.

In the following router and transport I am saving a copy of the message
so the learn-bot can learn it as ham.

What happens is that the unseen saved version of the message has the
headers changed - but the message passed on to the next router does NOT
have the headers changed.

# This router whitelists messages stored in Squirrelmail white list

personal_whitelist:
  driver = accept
  local_part_suffix=-*
  local_part_suffix_optional
  senders = ${if exists 
{/etc/squirrelmail/prefs/$local_part@$domain.whitelist}\
             {/etc/squirrelmail/prefs/$local_part@$domain.whitelist}}
  domains = +virtual_local_domains
  headers_remove = "X-Spam-Flag : X-Spam-Level : X-Spam-Status : 
X-Spam-Checker-Version"
  headers_add = "X-Whitelisted: $sender_address"
  transport = white_learn
  unseen
  no_verify


# transport
white_learn:
driver = appendfile
allow_symlink
envelope_to_add
file = /tmp/ham
group = mail
mode = 0777
return_path_add