[exim] subject rewrite for spam

Startseite
Nachricht löschen
Nachricht beantworten
Autor: exim
Datum:  
To: exim-users
Betreff: [exim] subject rewrite for spam
hallo List,


i´ve defined a rule to rewrite the subject if the mail contains spam.

i have put this:
-----
if not first_delivery then finish endif
if "${if def:header_X-New-Subject: {there}}" is there
then
headers remove Subject
headers add "Subject: $h_X-New-Subject:"
headers remove X-New-Subject
endif
---

in the file exim_system_filter.conf, and define in the
vexim-acl-check-content.conf the following:
-----
  warn message = X-New-Subject: ****SPAM**** $h_subject:
       spam = vmail:true
-----



works all great but now i´ve all messages´s subject contains ****spam***
although i´ve put to remove that tag also


-------
  headers_remove = ${if ......
......
......
....}fail}}} \
                           } {X-Spam-Score:X-Spam-Report:X-New-Subject:} }
----



all other headers have been removed X-Spam-Score: and X-Spam-Report:
but the subject header (X-New-Subject:} )doesn´t been removed an so exim
overwrites any mail.

What do i wrong?

thx.lines