1754bf4110
We currently do not allow nametrans rules such as nametrans = lambda foldername: re.sub('^INBOX$', '', foldername) because we crash with a traceback when running: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499755 The underlying reason is that we cannot create the "top level" root directory of the Maildir in the function makefolders(), it will bail out. John Goerzen intentionally prevented offlineimap from creating the top-level dir, so that a misconfiguration could not arbitrarily create folders on the file system. I believe that it should be perfectly possible to automatically create the root dirctory of the maildir. We still protect against folder creations at arbitrary places in the file system though. This patch cleans up makefolders(), adds documentation, allows to automatically create rootfolders if needed (using absolute paths) and adds some robustness in case the folders already exist that we want to create (rather than simply crapping out). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net> |
||
---|---|---|
.. | ||
folder | ||
repository | ||
ui | ||
__init__.py | ||
accounts.py | ||
CustomConfig.py | ||
error.py | ||
imaplib2.py | ||
imaplibutil.py | ||
imapserver.py | ||
imaputil.py | ||
init.py | ||
localeval.py | ||
mbnames.py | ||
syncmaster.py | ||
threadutil.py |