Re: [exim] Subject Rewritting and Spam Assassin

Top Page
Delete this message
Reply to this message
Author: Jakob Hirsch
Date:  
To: 'Exim-users'
Subject: Re: [exim] Subject Rewritting and Spam Assassin
Gordon Ross wrote:

> warn message = Subject: ??? SPAM ??? $h_subject


Unfortunately, there is no facility to remove or replace a header in
Exim's ACLs. So change "Subject" above to something unique (like
X-your_site-newsubject) und put this in your system filter:

if first_delivery then
  if $h_X-your_site-newsubject: is not ""
  then
    headers add "X-Original-Subject: $h_Subject:"
    headers remove Subject
    headers add "Subject: $h_X-your_site-newsubject:"
    headers remove X-your_site-newsubject
  endif
endif