diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index 8dbd7aa..58ff633 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -1,6 +1,5 @@ # IMAP folder support -# Copyright (C) 2002-2007 John Goerzen -# +# Copyright (C) 2002-2011 John Goerzen & contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index 2d2962f..4c2cadd 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -1,6 +1,5 @@ # IMAP repository support -# Copyright (C) 2002 John Goerzen -# +# Copyright (C) 2002-2011 John Goerzen & contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -171,7 +170,7 @@ class IMAPRepository(BaseRepository): return self.getconf('preauthtunnel', None) def getreference(self): - return self.getconf('reference', '""') + return self.getconf('reference', '') def getidlefolders(self): localeval = self.localeval @@ -316,14 +315,9 @@ class IMAPRepository(BaseRepository): when you are done creating folders yourself. :param foldername: Full path of the folder to be created.""" - #TODO: IMHO this existing commented out code is correct and - #should be enabled, but this would change the behavior for - #existing configurations who have a 'reference' set on a Mapped - #IMAP server....: - #if self.getreference() != '""': - # newname = self.getreference() + self.getsep() + foldername - #else: - # newname = foldername + if self.getreference(): + foldername = self.getreference() + self.getsep() + foldername + imapobj = self.imapserver.acquireconnection() try: self.ui._msg("Creating new IMAP folder '%s' on server %s" %\