docker-offlineimap/offlineimap/repository
Sebastian Spaeth ac033c68fd Improve nametrans local->remote folder syncing
While improving the test suite, I noticed that we would not create folders on
the remote in some cases when we should (yay for test suites!). This is because
we were testing the untransposed LOCAL foldername and check if it existed on
the remote side when deciding whether we should potentially create a new folder.

Simplify the code by transposing the LOCAL folder names in dst_hash, saving us
to create another confusing "newsrc" temp variable. Make the code a bit more
readable by using dst_name_t to indicate we operate a transposed folder name.

This now passes test 03 (using invalid nametrans rules) when test 03 would pass
before.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-02-16 11:45:18 +01:00
..
__init__.py raise Exception, "text" --> raise Exception("text") 2012-02-06 17:41:42 +01:00
Base.py Improve nametrans local->remote folder syncing 2012-02-16 11:45:18 +01:00
Gmail.py Remove Gmail realdelete option 2012-02-04 21:08:44 +01:00
IMAP.py Implement foldersort in a python3 compatible way 2012-02-13 08:36:28 +01:00
LocalStatus.py python3: import absolute package name 2012-02-06 17:41:42 +01:00
Maildir.py python3: import absolute package name 2012-02-06 17:41:42 +01:00