RE: [Exim] received_header_text wildcards?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: David Moon
Date:  
À: 'exim-users@exim.org'
Sujet: RE: [Exim] received_header_text wildcards?
Hi Philip,

Thanks for the reply. I had looked in the generic options for routers
section, but not the generic options for transports!

Since the option type is specified with a string (name of header), I thought
the following syntax would work, but I'm not having very good luck:

dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
headers_remove = Received
no_more

Is "received" not the proper name for this header?

Thanks,

David

-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: Wednesday, April 17, 2002 8:48 AM
To: David Moon
Cc: 'exim-users@???'
Subject: Re: [Exim] received_header_text wildcards?


On Wed, 17 Apr 2002, David Moon wrote:

> Something to the effect of:
>
> dnslookup:
> driver = dnslookup
> domains = ! +local_domains
> transport = remote_smtp
> ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
> headers_remove = Received:*
> no_more
>
> Obviously the "Received:*" isn't the proper syntax!
>
> Any pointers are greatly appreciated.


From the chapter on generic options for transports in the Exim 4 manual:

headers_remove                  Type: string*                  Default:
unset


    This option is expanded; the result must consist of a colon-separated
list
    of header names, not including the terminating colon, for example:


      headers_remove = return-receipt-to:acknowledge-to


    Any existing headers matching those names are not included in any
message
    ^^^
    ^^^
    that is transmitted by the transport. However, added headers may have
    these names. Thus it is possible to replace a header by specifying it in
    "headers_remove" and supplying the replacement in "headers_add". Headers
    to be removed can also be specified by routers. See chapter 14 and
section
    43.13.


OK, it's not entirely clear, but what it means is that if you specify
a name and there is more than one such header line, they all get
removed.



--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



****************************************************************************
IMPORTANT NOTICES:
****************************************************************************
This message is intended only for the addressee. Please notify the sender
by email if you are not the intended recipient. If you are not the
intended recipient, you may not copy, disclose, or distribute this
message or its content to any other person and any such actions may be
unlawful. Electronic mail sent through the Internet is not secure.
WR Hambrecht + Co (WRH+Co) does not accept time sensitive, action-oriented
messages or transaction orders, including orders to purchase or sell
securities, via email.

WRH+Co reserves the right to monitor and review the content of all messages
sent to or from this email address. Messages sent to or from this email
address may be stored on the WRH+Co email system.
****************************************************************************