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:
parent
67f0b864cc
commit
b9e28e23af
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue