On Mon, 5 Jun 2006, Yves Goergen wrote:
> 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.
The documentation is correct. Those are router/transport options. All
there currently is for ACLs is add_header. I think Tim must be adding
the X-Spam-Flag: header in an ACL and then using those lines in a router
or transport.
--
Philip Hazel University of Cambridge Computing Service
Get the Exim 4 book: http://www.uit.co.uk/exim-book