When appropriate, delete the message from the inbox after processing rules.
authorArt Cancro <ajc@citadel.org>
Sun, 22 Nov 2020 21:59:52 +0000 (16:59 -0500)
committerArt Cancro <ajc@citadel.org>
Sun, 22 Nov 2020 21:59:52 +0000 (16:59 -0500)
citadel/modules/inboxrules/serv_inboxrules.c

index 5d2e4a12be0a45825dfec7eb4fde353f8d170204..7848c0294ae0f7e58a05c17385ff268b30bcdbc3 100644 (file)
@@ -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