helper_inbox formating

This commit is contained in:
Mahendra 2018-04-07 16:11:24 +05:30
parent c5462a00cc
commit f71f895a11
No known key found for this signature in database
GPG Key ID: A672D8FAAEE398B3

View File

@ -1,14 +1,20 @@
from helper_sql import *
"""Helper Inbox performs inbox messagese related operations."""
from helper_sql import sqlExecute, sqlQuery
import queues
def insert(t):
sqlExecute('''INSERT INTO inbox VALUES (?,?,?,?,?,?,?,?,?,?)''', *t)
#shouldn't emit changedInboxUnread and displayNewInboxMessage at the same time
#queues.UISignalQueue.put(('changedInboxUnread', None))
# shouldn't emit changedInboxUnread and displayNewInboxMessage
# at the same time
# queues.UISignalQueue.put(('changedInboxUnread', None))
def trash(msgid):
sqlExecute('''UPDATE inbox SET folder='trash' WHERE msgid=?''', msgid)
queues.UISignalQueue.put(('removeInboxRowByMsgid',msgid))
queues.UISignalQueue.put(('removeInboxRowByMsgid', msgid))
def isMessageAlreadyInInbox(sigHash):
queryReturn = sqlQuery(