Commit Graph
97 Commits
Author SHA1 Message Date
Jorge Lobo 1ed977528c fix(eas): answer Sync of non-selectable mail folders as empty folders
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
2026-11-20 09:34:55 +01:00
leecher1337 063fb2be3d Fix for excessive memory usage on mailboxes with thousands of folders 2023-10-16 16:12:24 +02:00
Ludovic Marcotte 3796009eca fix(eas): handle SENT-BY in delegated calendars 2020-11-03 07:47:53 -05:00
Ludovic Marcotte e469f52dd1 fix(eas): gcc v10 compat fixes (fixes #5029) 2020-06-23 13:02:49 -04:00
Ludovic Marcotte 047a98b870 fix(eas): avoid generating broken XML ouput (fixes #4927) 2020-01-08 13:04:42 -05:00
Ludovic Marcotte d1e2418d65 (fix) fixed EAS provisioning support for Outlook/iOS (fixes #4853) 2019-10-30 13:44:13 -04:00
Ludovic Marcotte aca2c1b9e8 (fix) also try to get event using its UID before bailing out 2018-06-04 14:47:55 -04:00
Ludovic Marcotte 982cbed7cc (fix) avoid potential cache update when breaking sync queries (fixes #4422) 2018-03-15 16:01:50 -04:00
Ludovic Marcotte a0bf8b6f4d (fix) small optimizations + code cosmetics 2018-03-14 13:21:49 -04:00
Ludovic Marcotte d02a97468e (fix) EAS with drafts with attachments 2018-02-20 11:15:46 -05:00
Ludovic Marcotte fe8f08c807 (fix) fixed previous commit 2017-09-22 10:36:01 -04:00
Ludovic Marcotte 6b6f70ce9d (feat) more verbose output 2017-09-21 14:00:28 -04:00
Ludovic Marcotte 6f56522f89 (feat) first pas at EAS v16 support and save in drafts 2017-06-01 16:07:34 -04:00
Ludovic Marcotte c92d489017 (fix) remove over EAS alarms if we don't want them (fixes #4059) 2017-04-11 10:13:56 -04:00
Ludovic Marcotte 227cf582d9 (fix) touch objects when server-side changes occured 2017-01-23 08:53:41 -05:00
Ludovic Marcotte 1da36a3ef9 (fix) always force save events creation over EAS (fixes #3958) 2016-12-21 10:47:33 -05:00
Ludovic Marcotte 022c4bac98 (fix) wrong check for delete permission 2016-11-24 15:49:10 -05:00
Ludovic Marcotte f7c4486370 (feat) relaxed permission requirements for subscription synchronizations (fixes #3118 and #3180) 2016-11-21 10:46:13 -05:00
Ludovic Marcotte 5db9f40f6a (fix) make sure we don't sleep for too long when EAS processes need interruption 2016-09-29 13:00:48 -04:00
Ludovic Marcotte a9c29c65b3 (fix) compiler fixes + first round of iOS fixes 2016-09-22 11:42:28 -04:00
Ludovic Marcotte 4ed1063296 Correctly get the collection/key IDs (fixes #3775) 2016-07-25 06:19:36 -04:00
Ludovic Marcotte 440acec143 Added EAS folder merge support and fixed long GUID issue (fixes #3460) 2016-07-21 14:06:11 -04:00
Ludovic Marcotte f0f9ca9ff0 (fix) properly initialize values 2016-06-06 13:28:42 -04:00
Ludovic Marcotte aa6a102132 (fix) rename the start var to avoid potential SOPE confusion 2016-04-07 14:22:17 -04:00
Ludovic Marcotte eb14676489 (fix) set minimal interval (fixes #3605) 2016-03-30 14:31:57 -04:00
Ludovic Marcotte d03afba739 (fix) handle EAS termination when SOGo is being shutdown (fixes #3604) 2016-03-29 10:32:10 -04:00
Ludovic Marcotte f3a8c30c17 (fix) memory leak 2016-03-28 15:10:12 -04:00
Ludovic Marcotte f6f5613be5 (fix) handle FilterType changes using EAS (fixes #3543) 2016-03-28 08:43:56 -04:00
Ludovic Marcotte be7ee69f0f (fix) avoid truncating the MIME content when fetching the whole message 2016-03-09 08:57:51 -05:00
Patrice Levesque 6bb2065f46 Fix too aggressive #include and #import removal in ActiveSync directory - it broke master branch. 2016-02-16 18:39:58 -05:00
Patrice Levesque 9cb1b899b0 Merge branch 'master' into fix-some-warnings
Conflicts:
	UI/Scheduler/UIxAppointmentActions.m
2016-02-16 14:32:50 -05:00
Ludovic Marcotte 42131c564a (fix) support EAS MIMETruncation 2016-02-15 16:04:18 -05:00
Patrice Levesque bd56f4cf9f Remove pointless #include from .m and .h files
This was done with a brute-force approach, ensuring no additional
warnings from GCC 4.9 under x86_64.
2016-02-13 17:41:54 -05:00
Patrice Levesque 7c25b53fdf Remove pointless #imports from .m and .h files
This was done with a brute-force approach, ensuring no additional
warnings from GCC 4.9 under x86_64.
2016-02-13 16:11:52 -05:00
Ludovic Marcotte dd19f380ad (fix) added local memory pool 2016-02-05 10:03:56 -05:00
Ludovic Marcotte 88207d27c4 (fix) now always generate invitation updates when using EAS
Conflicts:

	NEWS
2016-01-22 13:50:48 -05:00
Ludovic Marcotte f3ea377bdb (fix) correctly remove the event/task 2016-01-14 14:49:59 -05:00
Ludovic Marcotte 321193472d (fix) when deleting an event using EAS, properly invoke the auto-scheduling code 2016-01-08 13:13:39 -05:00
Ludovic Marcotte d7fb79381e (feat) we now save the supported elements in EAS collections 2015-10-26 10:16:09 -04:00
Ludovic Marcotte 114622fee0 (fix) last fixes for cache coherency 2015-10-20 08:49:32 -04:00
Ludovic Marcotte 020fa78848 (feat) initial S/MIME support for EAS (#3327) 2015-10-15 15:32:15 -04:00
Ludovic Marcotte bfa3cf379c (fix) numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849)
Conflicts:

	NEWS
2015-10-14 09:23:03 -04:00
Ludovic Marcotte f13b3dd201 (fix) typo in previous commit 2015-09-17 16:02:45 -04:00
Ludovic Marcotte 413550a025 (fix) memory leak when sync'ing GCS collections 2015-09-17 15:59:20 -04:00
Ludovic Marcotte 59ad8a2e5a (fix) improved EAS speed during initial syncing of large mailboxes (#3293)
Conflicts:

	SoObjects/Mailer/SOGoMailFolder.h
	SoObjects/SOGo/SOGoGCSFolder.m
2015-09-09 10:22:29 -04:00
Ludovic Marcotte ab8feff67d (fix) avoid too-many LIST commands over EAS (#3294) 2015-09-09 10:13:27 -04:00
Ludovic Marcotte ac21649633 (feat) added support for DeletesAsMoves over EAS
Conflicts:

	ActiveSync/SOGoActiveSyncDispatcher+Sync.m
2015-07-22 09:56:36 -04:00
Ludovic Marcotte efd182f145 (fix) improved EAS email flagging handling (#3140) 2015-07-22 09:46:44 -04:00
Ludovic Marcotte 647f052486 Fix for dfecce7381
Conflicts:

	ActiveSync/SOGoActiveSyncDispatcher+Sync.m
2015-06-29 13:55:12 -04:00
Ludovic Marcotte a37f438663 (fix) the EAS maximum response size being per-folder, and not global 2015-05-04 09:11:52 -04:00