Regression: Avoid corruption of config.json on unexpected shutdown

Unexpected shutdowns (e.g. OS crash) will cause config.json to become corrupted. I believe this is because Mailspring keeps it open for R/W axis, so it becomes corrupted if Mailspring doesn’t shut down properly.

The client should behave in a way that is robust against this issue.


(Originally posted by brandondube on GitHub.)

It seems this issue is related to the ones mentioned by @ccc5vd. This happened before on Nylas, detailed here and the fix was reviewed by @bengotow, here.

If this is a regression from Nylas, propagated to Mailspring, maybe we already have a solution.


(Originally posted by paulocoghi on GitHub.)

Duplicate Issues:

Joined, as explained by CodeMouse92

1 Like

Is there any progress on this?

Still happening, it would be nice to have this fixed