Re: [exim] How to modify the Subject header

Top Page
Delete this message
Reply to this message
Author: Yves Goergen
Date:  
To: Tim Jackson
CC: exim-users
Subject: Re: [exim] How to modify the Subject header
On 05.06.2006 18:24 (+0100), Tim Jackson wrote:
> Below is a method that I worked out which is simpler than all those
> suggested, including in the wiki, since it all takes place in the DATA
> ACL. (No messing around with system filters etc. - I felt that was
> rather ugly and wanted a better solution)
>
>
> # Add a "*****SPAM***** " prefix to the Subject header, if the
> # X-Spam-Flag header is set to 'YES'
> headers_remove = Subject
> headers_add = ${if { eq{$h_X-Spam-Flag:}{YES} } \
>                        {Subject: *****SPAM***** $h_Subject:} \
>                        {Subject: $h_Subject:} \
>                 }

>
> I've used this myself for some time. Works great.


Sounds interesting, currently I have split it up in the DATA ACL and the
transport further down. Only the Exim documentation doesn't contain
"headers_remove" and "headers_add" as options for ACL, only for routers
and transports. If this works, maybe the documentation should be updated
so I would have found it myself earlier.

--
Yves Goergen "LonelyPixel" <nospam.list@???>
http://beta.unclassified.de – My web laboratory.