Skip to content

fix: Don't fall into infinite loop if the folder is missing#8021

Merged
Hocuri merged 5 commits intomainfrom
hoc/dont-go-into-infinite-loop-with-missing-folder
Mar 23, 2026
Merged

fix: Don't fall into infinite loop if the folder is missing#8021
Hocuri merged 5 commits intomainfrom
hoc/dont-go-into-infinite-loop-with-missing-folder

Conversation

@Hocuri
Copy link
Copy Markdown
Collaborator

@Hocuri Hocuri commented Mar 23, 2026

Previously, if the mvbox_move folder is missing, then core will loop infinitely, because new_mail is never set to false.

The fix is to first set new_mail to false, then return if the folder is missing.

This is the bug @hpk42 experienced when commenting in #7989

@Hocuri Hocuri force-pushed the hoc/dont-go-into-infinite-loop-with-missing-folder branch from 776c844 to 45c714c Compare March 23, 2026 15:39
@Hocuri Hocuri requested a review from link2xt March 23, 2026 15:44
@Hocuri Hocuri merged commit e86b170 into main Mar 23, 2026
29 of 30 checks passed
@Hocuri Hocuri deleted the hoc/dont-go-into-infinite-loop-with-missing-folder branch March 23, 2026 17:29
@link2xt
Copy link
Copy Markdown
Collaborator

link2xt commented Mar 23, 2026

The bug fixed here is likely the result of #7783, previously we would have created the folder back eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants