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)