[GH-ISSUE #334] Delete ALL sometimes shows 0 messages to delete even though the inbox has messages #222

Closed
opened 2026-03-15 13:17:57 +03:00 by kerem · 4 comments
Owner

Originally created by @tmulle on GitHub (Jul 15, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/334

This is a very minor thing, but when you load the page and watch the inbox fill up with emails and don't click anything on the page other than the Delete All button, it will say "0 messages will be deleted"

I've tested this in the standalone window and the Quarkus Dev UI embedded view mode.

This is on Fedora with Firefox and Chrome.. haven't tested with anything else at the moment.

image

Originally created by @tmulle on GitHub (Jul 15, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/334 This is a very minor thing, but when you load the page and watch the inbox fill up with emails and don't click anything on the page other than the `Delete All` button, it will say "0 messages will be deleted" I've tested this in the standalone window and the Quarkus Dev UI embedded view mode. This is on Fedora with Firefox and Chrome.. haven't tested with anything else at the moment. ![image](https://github.com/user-attachments/assets/42b7228f-26a7-4d7f-938b-4bda2e074a8e)
kerem 2026-03-15 13:17:57 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@axllent commented on GitHub (Jul 16, 2024):

@tmulle Good catch! Currently that total is set when the inbox view is loaded, but not updated when new messages arrive. It was using the same logic as filtered views (searches / tags) which do not automatically update when new messages arrive.

I've pushed a fix for this, but won't won't release a new version just yet ~ I try stagger the releases by a week unless it's a critical fix as not to annoy package maintainers by releasing every other day ;-)

Thanks for reporting!

<!-- gh-comment-id:2229997872 --> @axllent commented on GitHub (Jul 16, 2024): @tmulle Good catch! Currently that total is set when the inbox view is loaded, but not updated when new messages arrive. It was using the same logic as filtered views (searches / tags) which do not automatically update when new messages arrive. I've pushed [a fix](https://github.com/axllent/mailpit/commit/21a6f798d1b362c3f788dafbf6a3d6490ed38f7e) for this, but won't won't release a new version just yet ~ I try stagger the releases by a week unless it's a critical fix as not to annoy package maintainers by releasing every other day ;-) Thanks for reporting!
Author
Owner

@melloware commented on GitHub (Jul 16, 2024):

Thanks for the quick fix @axllent !

<!-- gh-comment-id:2230650791 --> @melloware commented on GitHub (Jul 16, 2024): Thanks for the quick fix @axllent !
Author
Owner

@axllent commented on GitHub (Jul 21, 2024):

@melloware This has now been released in v1.19.2. Please can you confirm this fixes the issue for you, thanks!

<!-- gh-comment-id:2241458057 --> @axllent commented on GitHub (Jul 21, 2024): @melloware This has now been released in [v1.19.2](https://github.com/axllent/mailpit/releases/tag/v1.19.2). Please can you confirm this fixes the issue for you, thanks!
Author
Owner

@melloware commented on GitHub (Jul 21, 2024):

Thank you @axllent it works. Safe to close ticket!

<!-- gh-comment-id:2241585568 --> @melloware commented on GitHub (Jul 21, 2024): Thank you @axllent it works. Safe to close ticket!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#222
No description provided.