From 9a3426d99baf85d4f61e0e9e0c3dd1295d62cbdc Mon Sep 17 00:00:00 2001 From: gxlin Date: Thu, 24 Jun 2021 13:27:08 +0800 Subject: Add more mail config --- .offlineimap.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .offlineimap.py (limited to '.offlineimap.py') 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())))))) -- cgit v1.2.3