From 687a382d6fd27a355a551d8cfc64e1791f1fa4a7 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 6 May 2017 18:51:02 +0100 Subject: [PATCH] Docs: add note on Received-By: header creation under cutthrough --- doc/doc-docbook/spec.xfpt | 5 +++++ src/src/receive.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 669248c11..5b735907e 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -29014,6 +29014,11 @@ and cannot depend on content of received headers. Note also that headers cannot be modified by any of the post-data ACLs (DATA, MIME and DKIM). Headers may be modified by routers (subject to the above) and transports. +.new +The Received-By: header is generated as soon as the body reception starts, +rather than the traditional time after the full message is received; +this will affect the timestamp. +.wen All the usual ACLs are called; if one results in the message being rejected, all effort spent in delivery (including the costs on diff --git a/src/src/receive.c b/src/src/receive.c index 28da47f83..f8320bd20 100644 --- a/src/src/receive.c +++ b/src/src/receive.c @@ -3027,7 +3027,6 @@ if (chunking_state > CHUNKING_OFFERED) /* Cutthrough delivery: We have to create the Received header now rather than at the end of reception, so the timestamp behaviour is a change to the normal case. -XXX Ensure this gets documented XXX. Having created it, send the headers to the destination. */ if (cutthrough.fd >= 0 && cutthrough.delivery) -- 2.30.2