From: Art Cancro Date: Thu, 19 Mar 2009 14:22:27 +0000 (+0000) Subject: * After completing an SMTP queue run, include the number of messages processed in... X-Git-Tag: v7.86~1336 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=e565d92d395a5ce0661f0db2e0a78f4d4a7ad97f;p=citadel.git * After completing an SMTP queue run, include the number of messages processed in the log output --- diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index 5d520ae2b..a5d64f0a5 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -1696,6 +1696,7 @@ void smtp_do_procmsg(long msgnum, void *userdata) { */ void smtp_do_queue(void) { static int doing_queue = 0; + int num_processed = 0; /* * This is a simple concurrency check to make sure only one queue run @@ -1715,10 +1716,9 @@ void smtp_do_queue(void) { CtdlLogPrintf(CTDL_ERR, "Cannot find room <%s>\n", SMTP_SPOOLOUT_ROOM); return; } - CtdlForEachMessage(MSGS_ALL, 0L, NULL, - SPOOLMIME, NULL, smtp_do_procmsg, NULL); + num_processed = CtdlForEachMessage(MSGS_ALL, 0L, NULL, SPOOLMIME, NULL, smtp_do_procmsg, NULL); - CtdlLogPrintf(CTDL_INFO, "SMTP client: queue run completed\n"); + CtdlLogPrintf(CTDL_INFO, "SMTP client: queue run completed; %d messages processed\n", num_processed); run_queue_now = 0; doing_queue = 0; }