/offlineimap/head: changeset 267

mbnames folder filter takes *2* arguments.
This commit is contained in:
mj 2002-10-09 21:55:34 +01:00
parent d3f924f6fc
commit 528a349d4b

View File

@ -26,7 +26,7 @@ def genmbnames(config, localeval, boxlist):
return return
file = open(os.path.expanduser(config.get("mbnames", "filename")), "wt") file = open(os.path.expanduser(config.get("mbnames", "filename")), "wt")
file.write(localeval.eval(config.get("mbnames", "header"))) file.write(localeval.eval(config.get("mbnames", "header")))
folderfilter = lambda foldername: 1 folderfilter = lambda accountname, foldername: 1
if config.has_option("mbnames", "folderfilter"): if config.has_option("mbnames", "folderfilter"):
folderfilter = localeval.eval(config.get("mbnames", "folderfilter"), folderfilter = localeval.eval(config.get("mbnames", "folderfilter"),
{'re': re}) {'re': re})