From 363c8abd80ffb059433da675b8390c43f1a46048 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 7 May 2012 08:32:11 -0400 Subject: Fix the folder prioritising in offlineimap --- .offlineimap.py | 4 ++-- .offlineimaprc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.offlineimap.py b/.offlineimap.py index 334b6a8..2d1f5f9 100644 --- a/.offlineimap.py +++ b/.offlineimap.py @@ -4,8 +4,8 @@ prioritized = ['INBOX', 'QueensU.INBOX'] def mycmp(x, y): for prefix in prioritized: - xsw = x.startswith(prefix) - ysw = y.startswith(prefix) + xsw = x.visiblename.startswith(prefix) + ysw = y.visiblename.startswith(prefix) if xsw and ysw: return cmp(x, y) elif xsw: diff --git a/.offlineimaprc b/.offlineimaprc index 2579d7f..6b2aa65 100644 --- a/.offlineimaprc +++ b/.offlineimaprc @@ -29,7 +29,7 @@ remoteuser = ryan remotepass = LOCAL_PASS [Repository RemoteGmail] -foldersort = lambda x, y: cmp(x, y) +foldersort = lambda x, y: mycmp(x, y) type = Gmail remoteuser = ryanakca@gmail.com remotepass = GMAIL_PASS -- cgit v1.2.3