CHUNKING/DKIM: fix handling of lines having a leading dot
[exim.git] / src / src / receive.c
index 6a8ce884152a90924766e1ad2cb566f7760376f8..3351ab1c535998b84e8c55f579e60aa575860666 100644 (file)
@@ -1615,8 +1615,10 @@ message_linecount = body_linecount = body_zerocount =
   max_received_linelength = 0;
 
 #ifndef DISABLE_DKIM
-/* Call into DKIM to set up the context. */
-if (smtp_input && !smtp_batched_input && !dkim_disable_verify) dkim_exim_verify_init();
+/* Call into DKIM to set up the context.  In CHUNKING mode
+we clear the dot-stuffing flag */
+if (smtp_input && !smtp_batched_input && !dkim_disable_verify)
+  dkim_exim_verify_init(chunking_state <= CHUNKING_OFFERED);
 #endif
 
 #ifdef EXPERIMENTAL_DMARC