From: martin f. krafft Date: Mon, 2 Nov 2015 22:08:51 +0000 (+1300) Subject: exclude retrain parent folder from mbnames X-Git-Url: https://git.madduck.net/etc/offlineimap.git/commitdiff_plain/8e78db8cbc39a428309bcee762d54af539721ca0?hp=efa93be624a5559a537e30eb786a0ffa856cd7f9 exclude retrain parent folder from mbnames --- 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)