From: martin f. krafft Date: Sat, 5 Apr 2014 13:20:09 +0000 (+0200) Subject: Amend functions for new upstream version X-Git-Url: https://git.madduck.net/etc/offlineimap.git/commitdiff_plain/7c6fa0205885a02af5f22fc257d8f117f260f0c6 Amend functions for new upstream version --- diff --git a/.offlineimap/helper.py b/.offlineimap/helper.py index 3eb2346..0b06a5b 100644 --- a/.offlineimap/helper.py +++ b/.offlineimap/helper.py @@ -10,14 +10,14 @@ deprioritised = ['discard','spam','store','spool'] def py_foldersort_main(x, y): for prefix in prioritised: - if x.name.startswith(prefix): + if x.startswith(prefix): return -1 - elif y.name.startswith(prefix): + elif y.startswith(prefix): return +1 for prefix in deprioritised: - if x.name.startswith(prefix): + if x.startswith(prefix): return +1 - elif y.name.startswith(prefix): + elif y.startswith(prefix): return -1 return cmp(x, y)