From fe991146d55ae2d92f4efb65f5e3a72f0c6f0453 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 5 Apr 2011 14:28:48 -0400 Subject: [PATCH] Reset run_queue_now back to 0 after a forced run of the SMTP queue. Otherwise we continue to retry every message every minute, and that is bad. --- citadel/modules/smtp/serv_smtpclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/citadel/modules/smtp/serv_smtpclient.c b/citadel/modules/smtp/serv_smtpclient.c index 1a906bfd6..e18ebd024 100644 --- a/citadel/modules/smtp/serv_smtpclient.c +++ b/citadel/modules/smtp/serv_smtpclient.c @@ -962,6 +962,7 @@ void smtp_do_queue(void) { num_processed = CtdlForEachMessage(MSGS_ALL, 0L, NULL, SPOOLMIME, NULL, smtp_do_procmsg, NULL); } syslog(LOG_INFO, "SMTP client: queue run completed; %d messages processed", num_processed); + run_queue_now = 0; is_running = 0; } -- 2.39.2