migrations: also migrate subscriptions file in maildir migration

Otherwise users will be unsubscribed from all maildir folders.
This commit is contained in:
Martin Weinelt 2025-06-23 02:38:01 +02:00
parent cfb3136cf0
commit 67f0b864cc
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

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