From 81f194adca78da848f7c139a526945358750ac32 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Sun, 8 Jan 2012 12:48:21 +0100 Subject: [PATCH] mbnames should write out local and not nametransformed box names Rather than to write out the nametrans'lated folder names for mbnames, we now write out the local untransformed box names. This is generally what we want. This became relevant since we support nametrans rules on the local side since only a short time. Reported by Paul Collignan. Signed-off-by: Sebastian Spaeth --- Changelog.draft.rst | 5 +++++ offlineimap/accounts.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog.draft.rst b/Changelog.draft.rst index a9a73c7..41d3af8 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -19,5 +19,10 @@ New Features Changes ------- +* Rather than to write out the nametrans'lated folder names for mbnames, + we now write out the local untransformed box names. This is generally + what we want. This became relevant since we support nametrans rules on + the local side since only a short time. Reported by Paul Collignan. + Bug Fixes --------- diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index 4644604..fc2687f 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -372,7 +372,7 @@ def syncfolder(account, remotefolder, quick): % localfolder) return # Write the mailboxes - mbnames.add(account.name, localfolder.getvisiblename()) + mbnames.add(account.name, localfolder.getname()) # Load status folder. statusfolder = statusrepos.getfolder(remotefolder.getvisiblename().\