RE: [exim] Exiscan-ACL, SpamAssassin, Subject header

Góra strony
Delete this message
Reply to this message
Autor: Rick Cooper
Data:  
Dla: exim-users
Temat: RE: [exim] Exiscan-ACL, SpamAssassin, Subject header


> -----Original Message-----
> From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org]On
> Behalf Of Philip Hazel
> Sent: Friday, January 21, 2005 5:42 AM
> To: Oliver Egginger
> Cc: exim-users@???; Jeremy Beaty
> Subject: Re: [exim] Exiscan-ACL, SpamAssassin, Subject header
>
>
> On Fri, 21 Jan 2005, Oliver Egginger wrote:
>
> > > Is there a way to re-write the Subject header in the ACL or would I
> > > need to do it in a router or transport?
> >
> > You will need a transport filter for doing this.
>
> Not necessarily. You can do it in a router or a transport, using both
> "headers_remove" and "headers_add". Somewhat surprisingly, perhaps,
>
> headers_add = Subject: old subject was $h_subject:
> headers_remove = Subject
>
> works like that. It doesn't matter how you write it.
>
> headers_remove = Subject
> headers_add = Subject: old subject was $h_subject:
>
> is exactly the same. (Read the description in the manual: in fact, I've
> just been trying to re-write it to be clearer.)
>


Perhaps if you include some of the headers_add description:

At transport time, all the original headers listed in headers_remove are
removed. If there are multiple instances of any listed header, they are all
removed. Then the new headers specified by headers_add are added, in the
order in which they were attached to the address. Finally, any additional
headers specified by the transport are added. It is not possible to remove
headers added to an address by headers_add.

Because the addition does not happen until transport time, header lines that
are added by headers_add are not accessible by means of the $header_xxx
expansion syntax. Conversely, header lines that are removed by
headers_remove remain visible.

I have noted that the "headers removed remain visible" portion is not in the
headers_remove section, and I think if you noted how the two are handled
during transport (as you do with headeders_add) to the headers_remove
section would make that much clearer as well.

Rick


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.