X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/84a655513611641b55a8f46c13ee0e3cb141477f..b273058b341903372bdebe67d2960e4f8d2d8689:/src/src/receive.c diff --git a/src/src/receive.c b/src/src/receive.c index 96a48fe65..6d20a5cda 100644 --- a/src/src/receive.c +++ b/src/src/receive.c @@ -1399,6 +1399,7 @@ for (header_line * my_headerlist = header_list; my_headerlist; goto DO_MIME_ACL; } +mime_part_count = -1; DEBUG(D_receive) debug_printf("No Content-Type: header - presumably not a MIME message.\n"); return TRUE; @@ -1756,6 +1757,13 @@ if (thismessage_size_limit <= 0) thismessage_size_limit = INT_MAX; message_linecount = body_linecount = body_zerocount = max_received_linelength = 0; +#ifdef WITH_CONTENT_SCAN +/* reset non-per-part mime variables */ +mime_is_coverletter = 0; +mime_is_rfc822 = 0; +mime_part_count = -1; +#endif + #ifndef DISABLE_DKIM /* Call into DKIM to set up the context. In CHUNKING mode we clear the dot-stuffing flag */