From 52e1296fc0933a5b47496d2d2c3fea679fe0315c Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 22 Jun 2020 09:58:30 +0200 Subject: [PATCH] Always search in attachment file name/type --- app/src/main/java/eu/faircode/email/DaoMessage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index a4039f9dff..d9f7add2f0 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -311,8 +311,8 @@ public interface DaoMessage { " OR (:subject AND `subject` LIKE :find COLLATE NOCASE)" + // unsuitable index " OR (:keywords AND `keywords` LIKE :find COLLATE NOCASE)" + // no index " OR (:message AND `preview` LIKE :find COLLATE NOCASE)" + // no index - " OR (:attachments AND attachment.name LIKE :find COLLATE NOCASE)" + // no index - " OR (:attachments AND attachment.type LIKE :find COLLATE NOCASE)) AS matched" + // no index + " OR (attachment.name LIKE :find COLLATE NOCASE)" + // no index + " OR (attachment.type LIKE :find COLLATE NOCASE)) AS matched" + // no index " FROM message" + " LEFT JOIN attachment ON attachment.message = message.id" + " WHERE NOT ui_hide" +