Partial sync only has to FETCH flags, nothing else
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in \OCA\Mail\IMAP\Sync\Synchronizer::sync and inspect \OCA\Mail\IMAP\MessageMapper::findByIds to understand the current partial-sync flow. Confirm which fields are needed when changed flags are fetched, then verify that the synchronizer retrieves only flags and tags rather than unused message data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100