From 9ba102599ffa193c71b033bc45093e75cac2c9ed Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 27 Dec 2009 16:50:28 +0000 Subject: [PATCH] Fix SQL statmeent --- src/com/fsck/k9/mail/store/LocalStore.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index d74311597..21d86ab7d 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -1261,10 +1261,8 @@ public class LocalStore extends Store implements Serializable { return getMessages( listener, - "SELECT " - + "FROM messages " - + GET_MESSAGES_COLS - + "WHERE " + "SELECT " + GET_MESSAGES_COLS + + "FROM messages WHERE " + (includeDeleted ? "" : "deleted = 0 AND ") + " folder_id = ? ORDER BY date DESC" , new String[]