]> code.delx.au - offlineimap/commit
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)
commitb925fd129650a6ba4357edb57ff27e3e8ea3a341
tree609d441b38225f2dba8e975d96bdabba5a352f0a
parentac7c5a47efc80baa0270d949b72e596e5b25129b
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