TODO 2.9 KB

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