mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
Ensure the candidates for possible accounts are directories with a "cur" subdir to ensure it is a real maildir
This commit is contained in:
committed by
holger krekel
parent
724020ec2a
commit
0722876603
@@ -11,6 +11,8 @@ def main(vmail_dir=None):
|
||||
ci_accounts = 0
|
||||
|
||||
for path in Path(vmail_dir).iterdir():
|
||||
if not path.is_dir() or not (path / "cur").is_dir():
|
||||
continue
|
||||
accounts += 1
|
||||
if path.name[:3] in ("ci-", "ac_"):
|
||||
ci_accounts += 1
|
||||
|
||||
Reference in New Issue
Block a user