From cff792d38120a0212e58f307cb61f215f86172ff Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Sat, 7 May 2011 20:28:17 +0200 Subject: [PATCH] LocalStatusSQLite: Fix bug when deleting messages The syntax was not right, and deleting messages from the LocalStatus failed. (We passed in the full list of uids and we need to pass in one uid at a time (as a tuple). Deleting messages works now. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/LocalStatusSQLite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/folder/LocalStatusSQLite.py b/offlineimap/folder/LocalStatusSQLite.py index 63452f8..f470599 100644 --- a/offlineimap/folder/LocalStatusSQLite.py +++ b/offlineimap/folder/LocalStatusSQLite.py @@ -238,5 +238,5 @@ class LocalStatusSQLiteFolder(LocalStatusFolder): return for uid in uidlist: del(self.messagelist[uid]) - self.sql_write('DELETE FROM status WHERE id=?', - uidlist) + #TODO: we want a way to do executemany(.., uidlist) to delete all + self.sql_write('DELETE FROM status WHERE id=?', (uid, ))