From 7c6fa0205885a02af5f22fc257d8f117f260f0c6 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 5 Apr 2014 15:20:09 +0200 Subject: [PATCH] Amend functions for new upstream version --- .offlineimap/helper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.5