]> git.rmz.io Git - dotfiles.git/blobdiff - offlineimap/utils.py
[WIP] Push all of the ultrahaptics changes!
[dotfiles.git] / offlineimap / utils.py
index 81fbbf78d2240f0e26c4eadb0671be1b9fe4d710..5396cd4ec1cb0f90e50e557ef8c0da9ee9211752 100644 (file)
@@ -1,13 +1,9 @@
-import re
-
-mapping = { 'INBOX':                   'inbox'
-          , '[Google Mail]/All Mail':  'archive'
-          , '[Google Mail]/Drafts':    'drafts'
-          , '[Google Mail]/Important': 'important'
-          , '[Google Mail]/Sent Mail': 'sent'
-          , '[Google Mail]/Spam':      'spam'
-          , '[Google Mail]/Starred':   'flagged'
-          , '[Google Mail]/Bin':       'bin'
+mapping = { 'INBOX':         'inbox'
+          , 'Archive':       'archive'
+          , 'Drafts':        'drafts'
+          , 'Sent':          'sent'
+          , 'Junk Email':    'spam'
+          , 'Deleted Items': 'bin'
  }
 
 r_mapping = { val: key for key, val in mapping.items() }
  }
 
 r_mapping = { val: key for key, val in mapping.items() }
@@ -18,14 +14,7 @@ def transremote(foldername):
 def translocal(foldername):
     return r_mapping.get(foldername, foldername)
 
 def translocal(foldername):
     return r_mapping.get(foldername, foldername)
 
-top = [ 'inbox'
-      , 'flagged'
-      , 'chakra'
-      , 'unimaas'
-      , 'clementine'
-      , 'youtube'
-      , 'hotmail'
-      ]
+top = [ 'inbox' ]
 
 bot = [ 'archive'
       , 'drafts'
 
 bot = [ 'archive'
       , 'drafts'