Add trash query for sent box
This commit is contained in:
parent
2b629ee0e9
commit
39793dfac8
|
@ -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
|
||||||
|
|
Reference in New Issue
Block a user