While testing this patch, it seems that there is still a condition where movemail wipes the mailbox (though it doesn't leak contents any more).
Here is an updated reproducer that tests for the conditions...
While testing this patch, it seems that there is still a condition where movemail wipes the mailbox (though it doesn't leak contents any more).
Here is an updated reproducer that tests for the conditions...