Re: [exim] Extracting previous values of the Received: heade…

Top Page
Delete this message
Reply to this message
Author: Miguel Telleria de Esteban
Date:  
To: exim-users
Subject: Re: [exim] Extracting previous values of the Received: headers in ACL's
On Mon, 26 Sep 2005 21:33:53 +0200, Miguel wrote:

> Dear all,
>
> I would like to know if there is a way in the ACL_DATA and ACL_MIME
> (i.e. previous to local_scan) to gather all the list of Received
> headers.


I answer to myself :)

Looking at the exim-spec, section 11.5 (expansion items) I see in the
header section:

    If there is more than one header with the same name, they are all
    concatenated to form the substitution string, up to a maximum length
    of 64K.


So I guess that if I have a series of Received headers like:

    Received: from pop.server.com [111.222.333.444]
    .by localhost with POP3 (fetchmail-6.2.5)
    .for local_part@localhost (single-drop); Mon, 26 Sep 2005 11:46:06
    Received: (qmail 25256 invoked from network); 26 Sep 2005
    Received: from smtp-out-isp.com (444.333.222.111)
    by smtp.server.com with SMTP; 26 Sep 2005 09:45:16 -0000
    ...


The expanded value of $h_received will be something like:

    from pop.server.com [111.222.333.444]
    .by localhost with POP3 (fetchmail-6.2.5)
    .for local_part@localhost (single-drop); Mon, 26 Sep 2005 11:46:06


    (qmail 25256 invoked from network); 26 Sep 2005


    from smtp-out-isp.com (444.333.222.111)
    by smtp.server.com with SMTP; 26 Sep 2005 09:45:16 -0000
    ...


I still have to try it but I would appreciate if someone could confirm
if I am going in the right direction.

Regards,

    Miguel


--
|     (O-O)

---oOO-(_)-OOo-----------------------------------------------------
 Miguel TELLERIA DE ESTEBAN               Personal Homepage:
 Email: Miguel at mtelleria.com           http://www.mtelleria.com


 Miembro de http://www.linuca.org         Tel home: +32 2 280 1614
 Membre de  http://www.bxlug.be           GSM:      +32 497 038804
-------------------------------------------------------------------