mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 02:28:18 +00:00
Search on BCC too
This commit is contained in:
parent
a51c1a5098
commit
1b9e373591
3 changed files with 4 additions and 0 deletions
|
@ -404,6 +404,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||||
if (criteria.in_receipients) {
|
if (criteria.in_receipients) {
|
||||||
or.add(new RecipientStringTerm(Message.RecipientType.TO, search));
|
or.add(new RecipientStringTerm(Message.RecipientType.TO, search));
|
||||||
or.add(new RecipientStringTerm(Message.RecipientType.CC, search));
|
or.add(new RecipientStringTerm(Message.RecipientType.CC, search));
|
||||||
|
or.add(new RecipientStringTerm(Message.RecipientType.BCC, search));
|
||||||
}
|
}
|
||||||
if (criteria.in_subject)
|
if (criteria.in_subject)
|
||||||
or.add(new SubjectTerm(search));
|
or.add(new SubjectTerm(search));
|
||||||
|
|
|
@ -283,6 +283,7 @@ public interface DaoMessage {
|
||||||
" OR `from` LIKE :find COLLATE NOCASE" +
|
" OR `from` LIKE :find COLLATE NOCASE" +
|
||||||
" OR `to` LIKE :find COLLATE NOCASE" +
|
" OR `to` LIKE :find COLLATE NOCASE" +
|
||||||
" OR `cc` LIKE :find COLLATE NOCASE" +
|
" OR `cc` LIKE :find COLLATE NOCASE" +
|
||||||
|
" OR `bcc` LIKE :find COLLATE NOCASE" +
|
||||||
" OR `subject` LIKE :find COLLATE NOCASE" +
|
" OR `subject` LIKE :find COLLATE NOCASE" +
|
||||||
" OR `keywords` LIKE :find COLLATE NOCASE" +
|
" OR `keywords` LIKE :find COLLATE NOCASE" +
|
||||||
" OR `preview` LIKE :find COLLATE NOCASE) AS matched" +
|
" OR `preview` LIKE :find COLLATE NOCASE) AS matched" +
|
||||||
|
|
|
@ -82,6 +82,8 @@ public class FtsDbHelper extends SQLiteOpenHelper {
|
||||||
address.addAll(Arrays.asList(message.to));
|
address.addAll(Arrays.asList(message.to));
|
||||||
if (message.cc != null)
|
if (message.cc != null)
|
||||||
address.addAll(Arrays.asList(message.cc));
|
address.addAll(Arrays.asList(message.cc));
|
||||||
|
if (message.bcc != null)
|
||||||
|
address.addAll(Arrays.asList(message.bcc));
|
||||||
|
|
||||||
delete(db, message.id);
|
delete(db, message.id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue