mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Added searching for notes
This commit is contained in:
@@ -315,6 +315,7 @@ 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 (:notes AND `notes` LIKE :find COLLATE NOCASE)" + // no index
|
||||
" OR (attachment.name LIKE :find COLLATE NOCASE)" + // no index
|
||||
" OR (attachment.type LIKE :find COLLATE NOCASE)) AS matched" + // no index
|
||||
" FROM message" +
|
||||
@@ -335,7 +336,7 @@ public interface DaoMessage {
|
||||
" LIMIT :limit OFFSET :offset")
|
||||
List<TupleMatch> matchMessages(
|
||||
Long account, Long folder, String find,
|
||||
boolean senders, boolean recipients, boolean subject, boolean keywords, boolean message,
|
||||
boolean senders, boolean recipients, boolean subject, boolean keywords, boolean message, boolean notes,
|
||||
boolean unseen, boolean flagged, boolean hidden, boolean encrypted, boolean attachments,
|
||||
int type_count, String[] types,
|
||||
Integer size,
|
||||
|
||||
Reference in New Issue
Block a user