[Exim] Some headers from ACL warn statements not available i…

Pàgina inicial
Delete this message
Reply to this message
Autor: Martijn Grendelman
Data:  
A: exim-users
Assumpte: [Exim] Some headers from ACL warn statements not available in system filter?
Hi,

I am trying to set up Subject rewriting with exiscan-acl and a system
filter.

My ACL setup looks like this:

# Put a spam-score header in all messages
warn message = X-Spam-Score: $spam_score ($spam_bar)
       condition = ${if <{$message_size}{80k}{1}{0}}
       spam = nobody:true
# Put a report in identified spam messages, global threshold is 5.0
  warn message = X-Spam-Report: $spam_report\n\
                 X-Spam-Flag: YES\n\
                 X-New-Subject: [SPAM: $spam_score] $h_Subject
       condition = ${if <{$message_size}{80k}{1}{0}}
       spam = nobody


So, if SA thinks the message is spam, a spam-report, a X-Spam-Flag header
and a new subject get inserted into the message. This works, the headers
get added just fine.

I have also set up a system filter, that checks for a "X-New-Subject"
header, and if this is present, removes the Subject header and replaces it
by the new subject. This also works. When Exim receives a message !!with
theX-New- Subject header already present!!, the subject gets substituted
by it as it should.

However, if the header is added by the ACL above, the system filter
doesn't seem to see it. I added some logging commands to the system
filter, and an example message that I sent myself logged the following: