1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

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

View file

@ -378,7 +378,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
// https://tools.ietf.org/html/rfc3501#section-6.4.4 // https://tools.ietf.org/html/rfc3501#section-6.4.4
if (criteria.query != null && if (criteria.query != null &&
criteria.query.startsWith("raw:") && 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://support.google.com/mail/answer/7190
// https://developers.google.com/gmail/imap/imap-extensions#extension_of_the_search_command_x-gm-raw // https://developers.google.com/gmail/imap/imap-extensions#extension_of_the_search_command_x-gm-raw
Log.i("Boundary raw search=" + criteria.query); Log.i("Boundary raw search=" + criteria.query);