X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d3bdd28f491728d969c5941d18b9f4ee2651f60b..refs/heads/ultrahaptics:/offlineimap/utils.py diff --git a/offlineimap/utils.py b/offlineimap/utils.py index 81fbbf7..5396cd4 100644 --- a/offlineimap/utils.py +++ b/offlineimap/utils.py @@ -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() } @@ -18,14 +14,7 @@ def transremote(foldername): def translocal(foldername): return r_mapping.get(foldername, foldername) -top = [ 'inbox' - , 'flagged' - , 'chakra' - , 'unimaas' - , 'clementine' - , 'youtube' - , 'hotmail' - ] +top = [ 'inbox' ] bot = [ 'archive' , 'drafts'