]> code.delx.au - offlineimap/commit
UNDO: Synchronize newly created folders both ways
authorVincent Beffara <vbeffara@gmail.com>
Sun, 2 Sep 2007 00:43:15 +0000 (01:43 +0100)
committerVincent Beffara <vbeffara@gmail.com>
Sun, 2 Sep 2007 00:43:15 +0000 (01:43 +0100)
commitf549baa0748a20ad5652d97ff1a76d90148d6b8d
treeb8fa0196ff20499631b2ab6f131ea3ab725432c3
parent8eb0a2f6dc01630492491d9861b7cf2ed1caaf27
UNDO: Synchronize newly created folders both ways

This involves several changes at different places:

- syncfoldersto() takes statusfolder as an argument, and returns the
  list of new folders and the list of folders that should be ingnored,
  typically those that were deleted. Warns the user about folders that
  are present only on one side and are not synced.

- syncfoldersto() is called both ways, and on folder creation
  forgetfolders() is used to rebuild the list and take the new creation
  into account. Probably not the most efficient, since it involves
  talking to the IMAP server again, but it will rarely be used anyway.

- Locally created folders are treated separately in the synchronization,
  namely the local messages are uploaded and then the normal sync still
  occurs. If the same folder is created on both sides and contains
  messages on both sides, a two-way sync occurs.
offlineimap/accounts.py
offlineimap/repository/Base.py
offlineimap/ui/UIBase.py