From 5795004d6df9b1e87aae464f8f3e933f9d6272ca Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 23 Aug 2011 15:04:09 -0400 Subject: Added .offlineimap.py used by offlineimaprc --- .offlineimap.py | 13 +++++++++++++ dm | 1 + 2 files changed, 14 insertions(+) create mode 100644 .offlineimap.py diff --git a/.offlineimap.py b/.offlineimap.py new file mode 100644 index 0000000..7250170 --- /dev/null +++ b/.offlineimap.py @@ -0,0 +1,13 @@ +prioritized = ['INBOX', 'QueensU.INBOX'] + +def mycmp(x, y): + for prefix in prioritized: + xsw = x.startswith(prefix) + ysw = y.startswith(prefix) + if xsw and ysw: + return cmp(x, y) + elif xsw: + return -1 + elif ysw: + return +1 + return cmp(x, y) diff --git a/dm b/dm index e63bd16..45431c7 100755 --- a/dm +++ b/dm @@ -32,6 +32,7 @@ GLOBAL_FILES = \ .mutt/ \ .muttrc \ .notmuch-config \ + .offlineimap.py \ .pythonrc.py \ .quiltrc-dpkg \ .screenlayout/ \ -- cgit v1.2.3