summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-05-06 18:51:02 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2017-05-06 18:52:25 +0100
commit687a382d6fd27a355a551d8cfc64e1791f1fa4a7 (patch)
treead34967dab859462efa049d8766dd1e9c92c10e0
parent61453fd1252a447a9bf7a9fdb20448fbc4abbb8e (diff)
Docs: add note on Received-By: header creation under cutthrough
-rw-r--r--doc/doc-docbook/spec.xfpt5
-rw-r--r--src/src/receive.c1
2 files changed, 5 insertions, 1 deletions
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)