migrations: fix move of subscriptions

It is a file and we skip over files in the location I added it before.
This commit is contained in:
Martin Weinelt 2025-06-23 03:48:18 +02:00
parent 67f0b864cc
commit b9e28e23af
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -38,9 +38,11 @@ def check_user(vmail_root: Path):
def is_maildir_related(path: Path, layout: FolderLayout) -> bool:
if path.name in ["subscriptions"]:
return True
if not path.is_dir():
return False
if path.name in ["cur", "new", "tmp", "subscriptions"]:
if path.name in ["cur", "new", "tmp"]:
return True
if layout is FolderLayout.Default and path.name.startswith("."):
return True