From 7cf1ccce70764de672177425b5e359c24f294e32 Mon Sep 17 00:00:00 2001 From: gxlin Date: Fri, 25 Jun 2021 17:22:08 +0800 Subject: Emacs and offlineimap config --- .offlineimap.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.offlineimap.py') diff --git a/.offlineimap.py b/.offlineimap.py index e868861..c304ef4 100644 --- a/.offlineimap.py +++ b/.offlineimap.py @@ -7,3 +7,7 @@ def gmail_nametrans(foldername): re.sub('starred', 'flagged', re.sub('bin', 'trash', re.sub(' ', '_', foldername.lower())))))) + +def gmail_folderfilter(foldername): + return foldername in ('INBOX', '[Gmail]/Starred', + '[Gmail]/Drafts', '[Gmail]/All Mail') -- cgit v1.2.3