migrations: ignore maildir when in folder layout
Otherwise we'd be tryhing to move the maildir into itself and error out.
This commit is contained in:
parent
c45b8a1253
commit
b10c54606b
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ def is_maildir_related(path: Path, layout: FolderLayout) -> bool:
|
|||
if layout is FolderLayout.Default and path.name.startswith("."):
|
||||
return True
|
||||
if layout is FolderLayout.Folder:
|
||||
if path.name in ["mail"]:
|
||||
return False
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue