aboutsummaryrefslogtreecommitdiff
path: root/.offlineimap.py
diff options
context:
space:
mode:
authorRyan Kavanagh <ryanakca@kubuntu.org>2011-08-23 15:04:09 -0400
committerRyan Kavanagh <ryanakca@kubuntu.org>2011-08-25 07:43:13 -0400
commit5795004d6df9b1e87aae464f8f3e933f9d6272ca (patch)
treef19ff556e7ff2ba541e378b8f614517411ccf3ca /.offlineimap.py
parentAdded .devscripts (diff)
Added .offlineimap.py used by offlineimaprc
Diffstat (limited to '.offlineimap.py')
-rw-r--r--.offlineimap.py13
1 files changed, 13 insertions, 0 deletions
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)