From 8e78db8cbc39a428309bcee762d54af539721ca0 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 3 Nov 2015 11:08:51 +1300 Subject: [PATCH 1/1] exclude retrain parent folder from mbnames --- .offlineimap/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.offlineimap/helper.py b/.offlineimap/helper.py index 32f4631..1744243 100644 --- a/.offlineimap/helper.py +++ b/.offlineimap/helper.py @@ -49,6 +49,6 @@ def py_folderfilter_bulk(x): return False def py_folderfilter_mbnames(acct, x): - full_excludes_re_mbnames = ['retrain/(sp|h)am'] + full_excludes_re + full_excludes_re_mbnames = ['retrain(/(sp|h)am)?$'] + full_excludes_re return acct in ['madduck.net', 'madduck.net_bulk'] \ and not re.search('^(' + '|'.join(full_excludes_re_mbnames) + ')', x) -- 2.39.5