mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 21:08:03 +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
|
ci_accounts = 0
|
||||||
|
|
||||||
for path in Path(vmail_dir).iterdir():
|
for path in Path(vmail_dir).iterdir():
|
||||||
|
if not path.is_dir() or not (path / "cur").is_dir():
|
||||||
|
continue
|
||||||
accounts += 1
|
accounts += 1
|
||||||
if path.name[:3] in ("ci-", "ac_"):
|
if path.name[:3] in ("ci-", "ac_"):
|
||||||
ci_accounts += 1
|
ci_accounts += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user