X-Git-Url: https://git.madduck.net/etc/offlineimap.git/blobdiff_plain/f87f2b172c287eb11e67b9bca1b04a4809e62902..7c6fa0205885a02af5f22fc257d8f117f260f0c6:/.offlineimap/helper.py 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)