From 5fa3e37a1d96cc5cc02af30e37b8eb6eaf287853 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Thu, 7 Jul 2022 21:17:40 +0530 Subject: [PATCH] Add delete query --- src/helper_inbox.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helper_inbox.py b/src/helper_inbox.py index d99e9544..555795df 100644 --- a/src/helper_inbox.py +++ b/src/helper_inbox.py @@ -18,6 +18,11 @@ def trash(msgid): queues.UISignalQueue.put(('removeInboxRowByMsgid', msgid)) +def delete(ack_data): + """Permanent delete message from trash""" + sqlExecute("DELETE FROM inbox WHERE msgid = ?", ack_data) + + def undeleteMessage(msgid): """Undelte the message""" sqlExecute('''UPDATE inbox SET folder='inbox' WHERE msgid=?''', msgid)