Pass folder names for the foldersort function
Bring the description in the template offlineimap.conf in sync to the actual implementation: pass folder names to the sorting function, not the offlineimap.folder.IMAP.IMAPFolder objects themselves. GitHub issue: https://github.com/OfflineIMAP/offlineimap/issues/27 Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
parent
7ec77a1c62
commit
8b6f10e2e7
@ -23,6 +23,8 @@ WIP (add new stuff for the next release)
|
||||
(Andreas Mack)
|
||||
* Allow to set message access and modification timestamps based
|
||||
on the "Date" header of the message itself. (Cyril Russo)
|
||||
* [regression] pass folder names to the foldersort function,
|
||||
revert the documented behaviour
|
||||
|
||||
OfflineIMAP v6.5.5-rc1 (2012-09-05)
|
||||
===================================
|
||||
|
@ -365,7 +365,7 @@ class IMAPRepository(BaseRepository):
|
||||
def __init__(self, obj, *args):
|
||||
self.obj = obj
|
||||
def __cmp__(self, other):
|
||||
return mycmp(self.obj, other.obj)
|
||||
return mycmp(self.obj.getvisiblename(), other.obj.getvisiblename())
|
||||
return K
|
||||
retval.sort(key=cmp2key(self.foldersort))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user