diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index 2c9551d..f8a2281 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -326,7 +326,7 @@ class SyncableAccount(Account): thread = InstanceLimitedThread(\ instancename = 'FOLDER_' + self.remoterepos.getname(), target = syncfolder, - name = "Folder %s [acc: %s]" % (remotefolder, self), + name = "Folder %s [acc: %s]" % (remotefolder.getexplainedname(), self), args = (self, remotefolder, quick)) thread.start() folderthreads.append(thread) diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py index bca52a2..a80a6e0 100644 --- a/offlineimap/folder/Base.py +++ b/offlineimap/folder/Base.py @@ -132,6 +132,13 @@ class BaseFolder(object): """The nametrans-transposed name of the folder's name""" return self.visiblename + def getexplainedname(self): + """ Name that shows both real and nametrans-mangled values""" + if self.name == self.visiblename: + return self.name + else: + return "%s [remote name %s]" % (self.visiblename, self.name) + def getrepository(self): """Returns the repository object that this folder is within.""" return self.repository