[WIP] Fix Modoboa crashes when Postfix maps become modified #1654
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the issue/feature this PR addresses:
Modoboa's Postfix map file generator will generate a broken
modoboa-postfix-maps.chk
file if it fails to validate the existing map files due to user changes. On next start (ie: the second start after a user map file change!) modoboa will then crash inexplicably.Explanation of each commit:
As can be seen from the commit dates these commits are rather old – it's been a while since I encountered this issue last.
Current behavior before PR:
Desired behavior after PR is merged:
Modoboa should only log message: Cannot upgrade '…' map because it has been modified.