Fix DISABLE_DKIM biuld
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 23 Apr 2017 12:52:15 +0000 (13:52 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 23 Apr 2017 12:52:15 +0000 (13:52 +0100)
src/src/dkim_transport.c

index c8ac92e16520116efde310b9ab28903d9315f31f..552e1beb17dc2377be89b74658cd4e295dba6582 100644 (file)
@@ -7,13 +7,13 @@
 
 /* Transport shim for dkim signing */
 
-#ifndef DISABLE_DKIM
-
 
 #include "exim.h"
 
+#ifndef DISABLE_DKIM   /* rest of file */
+
 #ifdef HAVE_LINUX_SENDFILE
-#include <sys/sendfile.h>
+# include <sys/sendfile.h>
 #endif
 
 
@@ -157,7 +157,7 @@ mean they go out in the same packet as the MAIL, RCPT and (first) BDAT commands
 (transport_write_message() sizes the BDAT for the buffered amount) - for short
 messages, the BDAT LAST command.  We want no CRLF or dotstuffing expansion */
 
-tctx->options &= ~topt_use_crlf;
+tctx->options &= ~(topt_use_crlf | topt_escape_headers);
 transport_write_reset(0);
 if (  !write_chunk(tctx, dkim_signature, siglen)
    || !write_chunk(tctx, hdrs, hsize))