mail icon indicating copy to clipboard operation
mail copied to clipboard

Partial sync only has to FETCH flags, nothing else

Open ChristophWurst opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Partial sync can be expensive without QRESYC/CONDSTORE capabilities. Horde will flag all given UIDs as changed. We then fetch the messages another time but only really use the flags and tags data to update the cache. Headers, subject, imapdate, etc are fetched without a purpose.

Describe the solution you'd like

Adjust \OCA\Mail\IMAP\Sync\Synchronizer::sync to call a minimal version of \OCA\Mail\IMAP\MessageMapper::findByIds for changed message flags.

Describe alternatives you've considered

No response

Additional context

No response

ChristophWurst avatar May 04 '23 08:05 ChristophWurst

image

This would be worth the effort.

Excluded from FETCH in \OCA\Mail\IMAP\MessageMapper::findByIds are imapDate and headerText

ChristophWurst avatar Jan 29 '24 19:01 ChristophWurst