1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

Exclude deleted messages from search results

This commit is contained in:
Bao-Long Nguyen-Trong 2010-01-12 00:59:13 +00:00
parent 230428d16a
commit f965417479

View File

@ -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,