mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-20 14:36:53 +00:00
FolderSync also advertises mail folders that can't be opened, so that their
subfolders keep their place in the hierarchy: the "Other Users"/"Shared"
namespace roots, Dovecot's per-user parents ("Shared/jdoe@example.com") and
other \Noselect or \NonExistent parents. A Sync with SyncKey 0 on them gets no
collection, because the IMAP STATUS behind -collectionFromId:type: fails, so
the reply carries no SyncKey for them (an empty HTTP 200 on 12.1 and later).
iOS then repeats its initial Sync forever, 50 to 170 times per minute per
device.
Answer these folders exactly like an empty folder: SyncKey -1 and Status 1,
pushed on the initial Sync. Any other SyncKey dates from when the folder could
be opened, so ask for a complete resync (Status 3, also pushed) and the client
drops what it still holds. A folder qualifies only if the IMAP server confirms
it can't be opened (LIST \Noselect/\NonExistent, or a namespace root that LIST
omits); anything else, such as a real folder that failed to open, keeps the
current behaviour.
Fixes #5872
In order to use this software in production environments, you need to get a proper usage license from Microsoft. Please contact them directly to negotiate the fees associated to your user base. To contact Microsoft, please visit: http://www.microsoft.com/en-us/legal/intellectualproperty/ and send an email to iplicreq@microsoft.com Inverse inc. provides this software for free, but is not responsible for anything related to its usage.