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

If external processing command deletes the message text or recipient list

the message will be acknowledged, but ignored (not imported).
parent fd896f62
Branches
Tags
No related merge requests found
......@@ -1699,6 +1699,8 @@ static void smtp_thread(void* arg)
system(cmdstr(p, msgtxt_fname, rcptlst_fname, proc_err_fname, str));
if(flength(proc_err_fname)>0)
break;
if(!fexist(msgtxt_fname) || !fexist(rcptlst_fname))
break;
}
fclose(proc_cfg);
if(flength(proc_err_fname)>0
......@@ -1720,6 +1722,12 @@ static void smtp_thread(void* arg)
remove(proc_err_fname);
continue;
}
if(!fexist(msgtxt_fname) || !fexist(rcptlst_fname)) {
lprintf("%04d SMTP external process removed %s"
,socket, fexist(msgtxt_fname)==FALSE ? "message text" : "recipient list");
sockprintf(socket,ok_rsp);
continue;
}
}
/* Re-open files */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment