matcha icon indicating copy to clipboard operation
matcha copied to clipboard

FEAT: Add incremental sync for large mailboxes

Open andrinoff opened this issue 7 months ago • 2 comments

Is your feature request related to a problem? Full mailbox sync fetches all emails. For mailboxes with 100k+ emails, initial sync takes hours. Re-sync also slow.

Describe the solution you would like:

  • Track UIDVALIDITY and highest UID synced
  • Fetch only new emails since last sync
  • Use IMAP CONDSTORE extension if available
  • Handle UIDVALIDITY changes (full resync)
  • Show sync progress with percentage
  • Pause/resume sync capability
  • Background sync without blocking UI

Describe alternatives you have considered: Full sync always (current - very slow). Incremental dramatically faster.

Additional context:

  • Files: fetcher/fetcher.go, config/cache.go
  • IMAP CONDSTORE and QRESYNC extensions
  • Persistent sync state storage
  • Handle edge cases (deleted messages, moved messages)
  • Complexity: Very High - stateful sync protocol

andrinoff avatar Apr 16 '26 20:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 17 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 31 '26 06:05 floatpanebot