docker-offlineimap/offlineimap
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
..
folder Folder: Implement __eq__ for folders 2012-02-16 11:03:33 +01:00
repository Improve nametrans local->remote folder syncing 2012-02-16 11:45:18 +01:00
ui dict.has_key(a) --> a in dict 2012-02-06 17:41:43 +01:00
__init__.py Release v6.5.2.1 2012-02-04 21:11:44 +01:00
accounts.py Remove unused locked() function 2012-02-06 17:41:42 +01:00
CustomConfig.py Import configparser for python3 compatability 2012-02-06 17:41:42 +01:00
error.py Introduce new error level FOLDER_RETRY 2011-09-06 19:00:21 +02:00
imaplib2.py Bump bundled imaplib2 to 2.29 2011-11-02 10:55:42 +01:00
imaplibutil.py dict.has_key(a) --> a in dict 2012-02-06 17:41:43 +01:00
imapserver.py Replace thread.get_ident() 2012-02-06 17:41:43 +01:00
imaputil.py Fix mixed space/tabs 2012-02-06 17:41:43 +01:00
init.py except Ex, e: --> except Ex as e: 2012-02-06 17:41:42 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py explicitly define symbols to import instead of 'import *' 2011-05-09 22:43:03 +02:00
syncmaster.py Exit "infinite" monitorloop when SyncRunner thread exits 2011-11-02 11:55:05 +01:00
threadutil.py dict.has_key(a) --> a in dict 2012-02-06 17:41:43 +01:00