Limit Gmail raw search to archive folder only

This commit is contained in:
M66B 2020-08-09 16:56:55 +02:00
parent 5ed1eea055
commit a8e433db83
1 changed files with 2 additions and 1 deletions

View File

@ -378,7 +378,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
// https://tools.ietf.org/html/rfc3501#section-6.4.4
if (criteria.query != null &&
criteria.query.startsWith("raw:") &&
state.iservice.hasCapability("X-GM-EXT-1")) {
state.iservice.hasCapability("X-GM-EXT-1") &&
EntityFolder.ARCHIVE.equals(browsable.type)) {
// https://support.google.com/mail/answer/7190
// https://developers.google.com/gmail/imap/imap-extensions#extension_of_the_search_command_x-gm-raw
Log.i("Boundary raw search=" + criteria.query);