Messages are occasionally displayed in the wrong order
Hi, I used AI to create the text for this issue. I have read the generated text and I agree with it.
Description
Occasionally, messages in the Mailpit message list are displayed out of chronological order.
Some messages appear to remain "stuck" at the top of the list, while newly received messages are added below them. As a result, the message list no longer appears to be sorted with the newest messages at the top.
I've encountered this behavior across multiple versions of Mailpit, but unfortunately I have not yet been able to reliably reproduce it.
Example
The attached screenshot shows an example of the incorrect ordering.
In this case, several messages with newer timestamps appear below messages that were already present at the top of the list. The messages at the top seem to remain there while subsequently received messages are inserted further down.
Expected behavior
The message list should consistently be sorted, with newly received messages appearing in the top position.
Actual behavior
Occasionally, newly received messages appear below older messages, while some existing messages remain at the top of the list.
Reproduction
Unfortunately, I currently cannot provide reliable reproduction steps. The issue appears intermittently and has occurred across multiple Mailpit versions.
Additional information
- The issue has occurred with multiple versions of Mailpit (the screenshot is from v1.30.6).
- It does not appear to happen consistently.
- Refreshing/reloading the UI may or may not correct the ordering.
- The attached screenshot shows an example of the incorrect ordering.
Source: axllent/mailpit