Add trash query for sent box

This commit is contained in:
shekhar-cis 2022-07-11 17:29:27 +05:30
parent 2b629ee0e9
commit 39793dfac8
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -59,3 +59,11 @@ def retrieve_message_details(ack_data):
"select toaddress, fromaddress, subject, message, received from inbox where msgid = ?", ack_data "select toaddress, fromaddress, subject, message, received from inbox where msgid = ?", ack_data
) )
return 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