TODO 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. automatically resume upon transient errors, e.g. "connection reset by peer"
  4. or timeout after some data was already transmitted.
  5. possibly also try to handle Exchange's "glitches" somehow.
  6. add support for IMAP UTF-7 (for internationalized mailbox names).
  7. uidvalidity lock timeout handling would be a good idea.
  8. should complain when multiple Channels match the same folders.
  9. propagate folder deletions even when the folders are non-empty.
  10. - verify that "most" of the folders in the Channel are still there.
  11. - refuse to delete unpropagated messages when trashing on the remote side.
  12. - refuse to delete far side if it has unpropagated messages. symmetry?
  13. add message expiration based on arrival date (message date would be too
  14. unreliable). MaxAge; probably mutually exclusive to MaxMessages.
  15. add alternative treatments of expired messages. ExpiredMessageMode: Prune
  16. (delete messages like now), Keep (just don't sync) and Archive (move to
  17. separate folder - ArchiveSuffix, default .archive).
  18. add support for event notification callbacks.
  19. it would be also possible to report more differentiated exit codes, but
  20. that seems too limiting in the general case.
  21. make it possible to have different mailbox names for far and near side in
  22. Patterns.
  23. - use far:near for the pattern
  24. - for quoting, use more colons: the longest sequence of colons is the
  25. separator
  26. - this makes Groups mostly useless, as they are mostly a workaround for this
  27. function being missing so far
  28. - this is needed for move detection, which would work only within one Channel
  29. add regexp-based mailbox path rewriting to the drivers. user would provide
  30. expressions for both directions. every transformation would be immediately
  31. verified with the inverse transform. PathDelimiter and Flatten would become
  32. special cases of this.
  33. add daemon mode. primary goal: keep imap password in memory.
  34. also: idling mode.
  35. parallel fetching of multiple mailboxes.
  36. TLS session resumption becomes interesting then as well.
  37. imap_set_flags(): group commands for efficiency, don't call back until
  38. imap_commit().
  39. add streaming from fetching to storing.
  40. handle custom flags (keywords).
  41. make use of IMAP CONDSTORE extension (rfc4551; CHANGEDSINCE FETCH Modifier);
  42. make use of IMAP QRESYNC extension (rfc5162) to avoid SEARCH to find vanished
  43. messages.
  44. use MULTIAPPEND and FETCH with multiple messages.
  45. dummy messages resulting from MaxSize should contain a dump of the original
  46. message's MIME structure and its (reasonably sized) text parts.
  47. don't SELECT boxes unless really needed; in particular not for appending,
  48. and in write-only mode not before changes are made.
  49. problem: UIDVALIDITY change detection is delayed, significantly complicating
  50. matters.
  51. some error messages are unhelpful in non-verbose mode due to missing context.
  52. possibly use ^[[1m to highlight error messages.
  53. consider alternative approach to trashing: instead of the current trash-before-
  54. expunge done by mbsync, let MUAs do the trashing (as modern ones typically do).
  55. mbsync wouldn't do any trashing by itself, but should track the moves for
  56. optimization. additionally, there should be a mode to move trashed messages to
  57. the remote store. TrashMode Internal|External, AbsorbRemoteTrash.
  58. a yet different approach to trashing is treating the trash like a normal mailbox.
  59. however, this implies a huge working set.
  60. consider optional use of messages-id (and X-GM-MSGID):
  61. - detection of message moves between folders
  62. - recovery from loss of sync state, migration from other tools