X-Git-Url: https://git.madduck.net/etc/offlineimap.git/blobdiff_plain/efa93be624a5559a537e30eb786a0ffa856cd7f9..8e78db8cbc39a428309bcee762d54af539721ca0:/.offlineimap/helper.py?ds=inline 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)