From 39793dfac871f0c74e0c3b0aa27cc4f9a987cbc0 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Mon, 11 Jul 2022 17:29:27 +0530 Subject: [PATCH] Add trash query for sent box --- src/helper_sent.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/helper_sent.py b/src/helper_sent.py index 05b17f7f..aa76e756 100644 --- a/src/helper_sent.py +++ b/src/helper_sent.py @@ -59,3 +59,11 @@ def retrieve_message_details(ack_data): "select toaddress, fromaddress, subject, message, received from inbox where msgid = ?", ack_data ) return data + + +def trash(ackdata): + """Mark a message in the `sent` as `trash`""" + rowcount = sqlExecute( + '''UPDATE sent SET folder='trash' WHERE ackdata=?''', ackdata + ) + return rowcount