aboutsummaryrefslogblamecommitdiff
path: root/.offlineimap.py
blob: 725017067256b16ce3f36d108444cd20d5205fe7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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)