TODO 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. f{,data}sync() usage could be optimized by batching the calls.
  2. make SSL (connect) timeouts produce a bit more than "Unidentified socket error".
  3. uidvalidity lock timeout handling would be a good idea.
  4. add message expiration based on arrival date (message date would be too
  5. unreliable). MaxAge; probably mutually exclusive to MaxMessages.
  6. add alternative treatments of expired messages. ExpiredMessageMode: Prune
  7. (delete messages like now), Keep (just don't sync) and Archive (move to
  8. separate folder - ArchiveSuffix, default .archive).
  9. kill the concept of an INBOX, it is a relic from single-channel operation.
  10. if somebody needs it, he can have two stores with different Paths. the path
  11. can name a single (in-)box (curr. broken with maildir). an empty box name
  12. actually means empty, so the IMAP mailbox should use INBOX for Path (can't
  13. make that the default, as it would mess up the NAMESPACE).
  14. add regexp-based mailbox path rewriting to the drivers. user would provide
  15. expressions for both directions. every transformation would be immediately
  16. verified with the inverse transform. PathDelimiter and Flatten would become
  17. special cases of this.
  18. add daemon mode. primary goal: keep imap password in memory.
  19. also: idling mode.
  20. parallel fetching of multiple mailboxes.
  21. imap_set_flags(): group commands for efficiency, don't call back until
  22. imap_commit().
  23. add streaming from fetching to storing.
  24. handle custom flags (keywords).
  25. make use of IMAP CONDSTORE extension (rfc4551; CHANGEDSINCE FETCH Modifier);
  26. make use of IMAP QRESYNC extension (rfc5162) to avoid SEARCH to find vanished
  27. messages.
  28. use MULTIAPPEND and FETCH with multiple messages.
  29. create dummies describing MIME structure of messages bigger than MaxSize.
  30. flagging the dummy would fetch the real message. possibly remove --renew.
  31. note that all interaction needs to happen on the slave side probably.
  32. don't SELECT boxes unless really needed; in particular not for appending,
  33. and in write-only mode not before changes are made.
  34. problem: UIDVALIDITY change detection is delayed, significantly complicating
  35. matters.
  36. possibly use ^[[1m to highlight error messages.
  37. consider alternative approach to trashing: instead of the current trash-before-
  38. expunge done by mbsync, let MUAs do the trashing (as modern ones typically do).
  39. mbsync wouldn't do any trashing by itself, but should track the moves for
  40. optimization. additionally, there should be a mode to move trashed messages to
  41. the remote store. TrashMode Internal|External, AbsorbRemoteTrash.
  42. a yet different approach to trashing is treating the trash like a normal mailbox.
  43. however, this implies a huge working set.
  44. consider optional use of messages-id (and X-GM-MSGID):
  45. - detection of message moves between folders
  46. - recovery from unmotivated UIDVALIDITY change, or total loss of sync state