From: Art Cancro Date: Sun, 22 Nov 2020 21:59:52 +0000 (-0500) Subject: When appropriate, delete the message from the inbox after processing rules. X-Git-Tag: v939~216 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=af2c648746ff71aa5e2330e1b040202f6982d5c5 When appropriate, delete the message from the inbox after processing rules. --- diff --git a/citadel/modules/inboxrules/serv_inboxrules.c b/citadel/modules/inboxrules/serv_inboxrules.c index 5d2e4a12b..7848c0294 100644 --- a/citadel/modules/inboxrules/serv_inboxrules.c +++ b/citadel/modules/inboxrules/serv_inboxrules.c @@ -995,8 +995,8 @@ void inbox_do_msg(long msgnum, void *userdata) { } if (!keep_message) { // Delete the copy of the message that is currently in the inbox, if rules dictated that. - // FIXME delete the message syslog(LOG_DEBUG, "\033[36m\033[7mDELETE FROM INBOX\033[0m"); + CtdlDeleteMessages(CC->room.QRname, &msgnum, 1, ""); // we're in the inbox already } ii->lastproc = msgnum; // make note of the last message we processed, so we don't scan the whole inbox again