PyBitmessage/src/helper_inbox.py

12 lines
350 B
Python
Raw Normal View History

2013-08-27 12:13:40 +00:00
from helper_sql import *
import shared
def insert(t):
2013-08-27 12:13:40 +00:00
sqlExecute('''INSERT INTO inbox VALUES (?,?,?,?,?,?,?,?,?)''', *t)
shared.UISignalQueue.put(('changedInboxUnread', None))
def trash(msgid):
2013-08-27 12:13:40 +00:00
sqlExecute('''UPDATE inbox SET folder='trash' WHERE msgid=?''', msgid)
shared.UISignalQueue.put(('removeInboxRowByMsgid',msgid))