Skip to content
Snippets Groups Projects
Commit b875baa9 authored by rswindell's avatar rswindell
Browse files

Ignore 0-byte mailproc .new file (if created).

parent 8e26a0a5
No related branches found
No related tags found
No related merge requests found
......@@ -2444,10 +2444,11 @@ static void smtp_thread(void* arg)
}
/* If mailproc has written new message text to .new file, use that instead of .msg */
if(fexist(newtxt_fname)) {
if(flength(newtxt_fname) > 0) {
remove(msgtxt_fname);
SAFECOPY(msgtxt_fname, newtxt_fname);
}
} else
remove(newtxt_fname);
if((msgtxt=fopen(msgtxt_fname,"rb"))==NULL) {
lprintf(LOG_ERR,"%04d !SMTP ERROR %d re-opening message file: %s"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment