From bd58aa4305f1db31bbdd69f7b0f805ee403927a4 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 4 Nov 2011 07:20:48 +0000 Subject: [PATCH] If an external mail processor removes all the recipients from the recipient list file (without actually deleting the file), don't bother saving the message to the message base. --- src/sbbs3/mailsrvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c index e8ded4e143..9fa509d588 100644 --- a/src/sbbs3/mailsrvr.c +++ b/src/sbbs3/mailsrvr.c @@ -2746,7 +2746,7 @@ static void smtp_thread(void* arg) continue; } - if(msg_handled) { + if(msg_handled || iniReadSectionCount(rcptlst,NULL) < 1) { lprintf(LOG_NOTICE,"%04d SMTP Message handled by external mail processor (%s, %u total)" ,socket, mailproc->name, ++mailproc->handled); continue; -- GitLab