migrations: also migrate subscriptions file in maildir migration
Otherwise users will be unsubscribed from all maildir folders.
This commit is contained in:
parent
cfb3136cf0
commit
67f0b864cc
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def check_user(vmail_root: Path):
|
||||||
def is_maildir_related(path: Path, layout: FolderLayout) -> bool:
|
def is_maildir_related(path: Path, layout: FolderLayout) -> bool:
|
||||||
if not path.is_dir():
|
if not path.is_dir():
|
||||||
return False
|
return False
|
||||||
if path.name in ["cur", "new", "tmp"]:
|
if path.name in ["cur", "new", "tmp", "subscriptions"]:
|
||||||
return True
|
return True
|
||||||
if layout is FolderLayout.Default and path.name.startswith("."):
|
if layout is FolderLayout.Default and path.name.startswith("."):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue