From f965417479aa0aed19860310c9718cf2df06bde0 Mon Sep 17 00:00:00 2001 From: Bao-Long Nguyen-Trong Date: Tue, 12 Jan 2010 00:59:13 +0000 Subject: [PATCH] Exclude deleted messages from search results --- src/com/fsck/k9/mail/store/LocalStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index a51443be2..e9f4828a6 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -565,7 +565,7 @@ public class LocalStore extends Store implements Serializable null, "SELECT " + GET_MESSAGES_COLS - + "FROM messages WHERE html_content LIKE ? OR subject LIKE ? OR sender_list LIKE ? ORDER BY date DESC" + + "FROM messages WHERE deleted = 0 AND (html_content LIKE ? OR subject LIKE ? OR sender_list LIKE ?) ORDER BY date DESC" , new String[] { queryString,