Re: [exim] header removal from acl?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Heiko Schlittermann
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] header removal from acl?
Wakko Warner <wakko@???> (Fr 24 Nov 2006 02:41:13 CET):
> Heiko Schlittermann wrote:
> > But in transports and routers you can remove headers. And probably in
> > the system filter (but then the mail already passed the ACL, didn't
> > it?).
>
> Good, I'm glad I wasn't missing anything. It would be nice to beable to do
> this. I was trying to setup something at work to change the importance of a
> message and an ACL was the first thought. Unfortunately, add_headers just
> adds new ones. MUAs that will be receiving this is outlook 2000. I didn't
> test which ones it uses first. I suppose I could always have it added after
> received.


Here is some blueprint how you could try it:

    ... 
    warn
    add_header    = X-SECRET-Importance: 4711



And later in the transport (I'm using the amavis transport here, because
all incoming messages have to pass it):


    amavis:
    driver = ...
    headers_remove = Importance
    headers_add = Importance: $h_x-secret-importance



(I'm not sure, probably you can even remove the x-secret-importance
header in the transport - it's how I interpret the 43.17 section).


But again, I'm not sure, what we do with spamassassin is only similar, not the same!

    Best regards from Dresden
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -