X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f1e894f37fb99398f7447220925a915bd031491a..071c51f70266916a7be153ce67c0045beb58b841:/src/src/regex.c diff --git a/src/src/regex.c b/src/src/regex.c index 7383f3c46..de8ec685f 100644 --- a/src/src/regex.c +++ b/src/src/regex.c @@ -1,5 +1,3 @@ -/* $Cambridge: exim/src/src/regex.c,v 1.6 2005/06/27 14:29:43 ph10 Exp $ */ - /************************************************* * Exim - an Internet mail transport agent * *************************************************/ @@ -47,7 +45,7 @@ int regex(uschar **listptr) { if (mime_stream == NULL) { /* We are in the DATA ACL */ - mbox_file = spool_mbox(&mbox_size); + mbox_file = spool_mbox(&mbox_size, NULL); if (mbox_file == NULL) { /* error while spooling */ log_write(0, LOG_MAIN|LOG_PANIC, @@ -210,7 +208,7 @@ int mime_regex(uschar **listptr) { /* open file */ - f = fopen(CS mime_decoded_filename, "r"); + f = fopen(CS mime_decoded_filename, "rb"); if (f == NULL) { /* open failed */ log_write(0, LOG_MAIN,