mirror of https://github.com/M66B/FairEmail.git
Specify where to search
This commit is contained in:
parent
b5b7f7a49c
commit
917fe43daa
|
@ -206,13 +206,21 @@ public class ViewModelBrowse extends ViewModel {
|
||||||
}
|
}
|
||||||
if (keywords)
|
if (keywords)
|
||||||
arg.writeAtom("OR");
|
arg.writeAtom("OR");
|
||||||
arg.writeAtom("TEXT");
|
arg.writeAtom("OR");
|
||||||
|
arg.writeAtom("OR");
|
||||||
|
arg.writeAtom("OR");
|
||||||
|
arg.writeAtom("FROM");
|
||||||
|
arg.writeBytes(state.search.getBytes());
|
||||||
|
arg.writeAtom("TO");
|
||||||
|
arg.writeBytes(state.search.getBytes());
|
||||||
|
arg.writeAtom("SUBJECT");
|
||||||
|
arg.writeBytes(state.search.getBytes());
|
||||||
|
arg.writeAtom("BODY");
|
||||||
arg.writeBytes(state.search.getBytes());
|
arg.writeBytes(state.search.getBytes());
|
||||||
if (keywords) {
|
if (keywords) {
|
||||||
arg.writeAtom("KEYWORD");
|
arg.writeAtom("KEYWORD");
|
||||||
arg.writeBytes(state.search.getBytes());
|
arg.writeBytes(state.search.getBytes());
|
||||||
}
|
}
|
||||||
arg.writeAtom("ALL");
|
|
||||||
Response[] responses = protocol.command("SEARCH", arg);
|
Response[] responses = protocol.command("SEARCH", arg);
|
||||||
|
|
||||||
List<Integer> msgnums = new ArrayList<>();
|
List<Integer> msgnums = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue