Re: [Exim] Suppress Received: line

Pàgina inicial
Delete this message
Reply to this message
Autor: Oliver Eikemeier
Data:  
A: exim-users
CC: Peter Rindfuss, Philip Hazel
Assumpte: Re: [Exim] Suppress Received: line
Philip Hazel wrote:
> On Fri, 30 May 2003, Peter Rindfuss wrote:
>
>>For the wishlist (maybe):
>>I would like to have a simple way to suppress the Received: line in
>>certain circumstances.
>
> OK, added to the Wish List.
>


(163) 30-May-03 T Don't write Received: if received_header_text is empty

Proposed patch:

--- suppress-received.patch begins here ---
--- src/receive.c.orig    Mon May 12 15:39:21 2003
+++ src/receive.c    Fri Jun 13 03:17:26 2003
@@ -1915,9 +1915,17 @@
 /* The first element on the header chain is reserved for the Received
 header, so all we have to do is fill in the text pointer. */


-header_list->text = string_sprintf("%s; %s\n", received, timestamp);
+if (received[0] == 0)
+ {
+ header_list->text = string_sprintf("Received: ; %s\n", timestamp);
+ header_list->type = htype_old;
+ }
+else
+ {
+ header_list->text = string_sprintf("%s; %s\n", received, timestamp);
+ header_list->type = htype_received;
+ }
header_list->slen = Ustrlen(header_list->text);
-header_list->type = htype_received;


/* If there is no From: header, generate one. If there is no sender address,
--- suppress-received.patch ends here ---

Regards
    Oliver