Mail not showing up in folder due to error: Closes #5538

Message duplication check was failing because it was asking for
the wrong column.
This commit is contained in:
Jim Nelson 2012-07-12 12:06:41 -07:00
parent 41c693dd17
commit 3bc2f6f444

View file

@ -663,7 +663,7 @@ private class Geary.ImapDB.Folder : Object, Geary.ReferenceSemantics {
// look for duplicate in IMAP message properties
Db.Statement stmt = cx.prepare(
"SELECT message_id FROM MessageTable WHERE internaldate=? AND rfc822_size=?");
"SELECT id FROM MessageTable WHERE internaldate=? AND rfc822_size=?");
stmt.bind_string(0, internaldate);
stmt.bind_int64(1, rfc822_size);