aboutsummaryrefslogtreecommitdiff
path: root/.offlineimap.py
diff options
context:
space:
mode:
Diffstat (limited to '.offlineimap.py')
-rw-r--r--.offlineimap.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/.offlineimap.py b/.offlineimap.py
new file mode 100644
index 0000000..e868861
--- /dev/null
+++ b/.offlineimap.py
@@ -0,0 +1,9 @@
+import re
+
+def gmail_nametrans(foldername):
+ return re.sub('^\[gmail\].', '',
+ re.sub('all_mail', 'archive',
+ re.sub('sent_mail', 'sent',
+ re.sub('starred', 'flagged',
+ re.sub('bin', 'trash',
+ re.sub(' ', '_', foldername.lower()))))))