X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f3d8f75105d83b511cf0cf43d3f8b23323d1106b..8bc732e8b03ebb4309f4b42626917148d176db49:/src/src/receive.c diff --git a/src/src/receive.c b/src/src/receive.c index af8e6de4c..f27dc425e 100644 --- a/src/src/receive.c +++ b/src/src/receive.c @@ -14,7 +14,7 @@ extern int dcc_ok; #endif #ifdef EXPERIMENTAL_DMARC -#include "dmarc.h" +# include "dmarc.h" #endif /* EXPERIMENTAL_DMARC */ /************************************************* @@ -497,6 +497,10 @@ recipients_list[recipients_count].bmi_optin = bmi_current_optin; /* reset optin string pointer for next recipient */ bmi_current_optin = NULL; #endif +#ifdef EXPERIMENTAL_DSN +recipients_list[recipients_count].orcpt = NULL; +recipients_list[recipients_count].dsn_flags = 0; +#endif recipients_list[recipients_count++].errors_to = NULL; } @@ -680,6 +684,7 @@ while ((ch = (receive_getc)()) != EOF) case 1: /* After written "\n" */ if (ch == '.') { ch_state = 3; continue; } + if (ch == '\r') { ch_state = 2; continue; } if (ch != '\n') ch_state = 0; else linelength = -1; break; @@ -993,10 +998,11 @@ switch(where) { case ACL_WHERE_DKIM: case ACL_WHERE_MIME: - case ACL_WHERE_DATA: if (cutthrough_fd >= 0 && (acl_removed_headers || acl_added_headers)) + case ACL_WHERE_DATA: + if (cutthrough_fd >= 0 && (acl_removed_headers || acl_added_headers)) { log_write(0, LOG_MAIN|LOG_PANIC, "Header modification in data ACLs" - "will not take effect on cutthrough deliveries"); + " will not take effect on cutthrough deliveries"); return; } }