From 7f832e7a1dead5700f5992dfa2e9fb4c36768360 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 11 Oct 2022 16:02:10 +0200 Subject: [PATCH] Search optimization --- FAQ.md | 2 +- .../eu/faircode/email/BoundaryCallbackMessages.java | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/FAQ.md b/FAQ.md index d56a68cbb3..d1c86616a5 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1140,7 +1140,7 @@ Since version 1.1315 it is possible to use search expressions like this: apple +banana -cherry ?nuts ``` -This will result in searching like this: +This will result in searching in the subject or text (only) like this: ``` ("apple" AND "banana" AND NOT "cherry") OR "nuts" diff --git a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java index 2bcb966dcb..6cea669543 100644 --- a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java +++ b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java @@ -986,9 +986,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback 0) + andFrom.size() + andTo.size() + andCc.size() + andBcc.size() + andKeyword.size() > 0) search = all.toString(); // Yahoo! does not support keyword search, but uses the flags $Forwarded $Junk $NotJunk @@ -1003,7 +1001,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback