Sqlite secure delete

Fixes #102
This commit is contained in:
mailchuck 2015-11-09 17:21:47 +01:00 committed by Peter Surda
parent 12878af41f
commit e9a908aa83

View File

@ -26,6 +26,8 @@ class sqlThread(threading.Thread):
self.conn.text_factory = str
self.cur = self.conn.cursor()
self.cur.execute('PRAGMA secure_delete = true')
try:
self.cur.execute(
'''CREATE TABLE inbox (msgid blob, toaddress text, fromaddress text, subject text, received text, message text, folder text, encodingtype int, read bool, sighash blob, UNIQUE(msgid) ON CONFLICT REPLACE)''' )