[GH-ISSUE #428] Remove or provide an option to disable the 'Delete all messages' confirmation dialog. #275

Closed
opened 2026-03-15 13:36:01 +03:00 by kerem · 8 comments
Owner

Originally created by @brammeleman on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/428

Background: When I'm debugging mail templates, a test iteration looks like:

  • Edit my software
  • In mailpit: Hit "Delete all"
  • Confirm yes
  • Run my software
  • Open the newest mail in mailpit
  • [repeat]

It would be nice to have an option like "tail -f" but then for email messages. Not quite sure what it should look like.
Maybe it's possible to have all mails expand by default. Like a Gmail conversation, but then just all incoming mails sort of concatenated.

One other step to make the test-iteration shorter is to get rid of the delete all confirmation dialog.

I'm curious whether others share this need and what you think about it.

/Bram

Originally created by @brammeleman on GitHub (Jan 30, 2025). Original GitHub issue: https://github.com/axllent/mailpit/issues/428 Background: When I'm debugging mail templates, a test iteration looks like: - Edit my software - In mailpit: Hit "Delete all" - Confirm yes - Run my software - Open the newest mail in mailpit - [repeat] It would be nice to have an option like "tail -f" but then for email messages. Not quite sure what it should look like. Maybe it's possible to have all mails expand by default. Like a Gmail conversation, but then just all incoming mails sort of concatenated. One other step to make the test-iteration shorter is to get rid of the delete all confirmation dialog. I'm curious whether others share this need and what you think about it. /Bram
kerem closed this issue 2026-03-15 13:36:06 +03:00
Author
Owner

@axllent commented on GitHub (Jan 31, 2025):

Thanks for the feedback @brammeleman. I'm really not sure how a "tail" UX could work, considering one may very easily get multiple messages coming in at once ¯_(ツ)_/¯ . I think that trying to implement functionality like this may cause more issues than it solves, and it would really just to save one click.

I do however get your point about the confirmation modals. The reason they exist when doing a "delete all" or "mark all as read" is to prevent the mistake of accidentally deleting all your messages (or marking them as read), especially when you have hundreds or thousands of emails in there for instance (I have 135k messages in mine). What if I added some additional logic where doing either action with <= 25 messages does so without confirmation, otherwise the modal is displayed?

What do you think?

<!-- gh-comment-id:2626252942 --> @axllent commented on GitHub (Jan 31, 2025): Thanks for the feedback @brammeleman. I'm really not sure how a "tail" UX could work, considering one may very easily get multiple messages coming in at once ¯\_(ツ)_/¯ . I think that trying to implement functionality like this may cause more issues than it solves, and it would really just to save one click. I do however get your point about the confirmation modals. The reason they exist when doing a "delete all" or "mark all as read" is to prevent the mistake of accidentally deleting all your messages (or marking them as read), especially when you have hundreds or thousands of emails in there for instance (I have 135k messages in mine). What if I added some additional logic where doing either action with <= 25 messages does so without confirmation, otherwise the modal is displayed? What do you think?
Author
Owner

@brammeleman commented on GitHub (Jan 31, 2025):

Hi @axllent! I'm usually just interested in the last mail(s) sent to mailpit. I agree "tail" kind of functionality is a bit of a stretch UI/UX wise.
Maybe a toggle button that clicks the 'new message'-notification popup for you?
Or a setting that disables the confirmation?

135k messages... wow! for bulk mail testing? archive?

<!-- gh-comment-id:2626810420 --> @brammeleman commented on GitHub (Jan 31, 2025): Hi @axllent! I'm usually just interested in the last mail(s) sent to mailpit. I agree "tail" kind of functionality is a bit of a stretch UI/UX wise. Maybe a toggle button that clicks the 'new message'-notification popup for you? Or a setting that disables the confirmation? 135k messages... wow! for bulk mail testing? archive?
Author
Owner

@axllent commented on GitHub (Jan 31, 2025):

I'll give the "tail" a bit more thought in the next couple of days, however I'll be honest and say it's it's not looking very likely at this stage. There are factors like what to do about the new mail popup and favicon counters, and of course the performance issues if multiple emails are received at once. Mailpit also has different views (UI controllers) which also complicate matters. All decisions I make regarding new features need to consider "the wider audience" (ie: other Mailpit users), as well as performance, upfront effort to develop something, and of course ongoing Mailpit maintenance overheads. I just can't please everyone unfortunately. Sometimes there are small "wins" (like the confirmation modal logic I described earlier) which potentially benefit everyone, and other times I can spend many hours working on something which saves one person just a few seconds. As I said, I'll get back to you on this.

The 135k is an archive (copy) of my personal email, as well as a testing ground. It runs on a fairly low-end machine which makes it ideal for performance testing as bottlenecks are easier to detect that way ;-)

<!-- gh-comment-id:2626938281 --> @axllent commented on GitHub (Jan 31, 2025): I'll give the "tail" a bit more thought in the next couple of days, however I'll be honest and say it's it's not looking very likely at this stage. There are factors like what to do about the new mail popup and favicon counters, and of course the performance issues if multiple emails are received at once. Mailpit also has different views (UI controllers) which also complicate matters. All decisions I make regarding new features need to consider "the wider audience" (ie: other Mailpit users), as well as performance, upfront effort to develop something, and of course ongoing Mailpit maintenance overheads. I just can't please everyone unfortunately. Sometimes there are small "wins" (like the confirmation modal logic I described earlier) which potentially benefit everyone, and other times I can spend many hours working on something which saves one person just a few seconds. As I said, I'll get back to you on this. The 135k is an archive (copy) of my personal email, as well as a testing ground. It runs on a fairly low-end machine which makes it ideal for performance testing as bottlenecks are easier to detect that way ;-)
Author
Owner

@brammeleman commented on GitHub (Jan 31, 2025):

I completely understand!
Do you mind if I change the issue description with something like

Remove or provide an option to disable the 'Delete all messages' confirmation dialog.

<!-- gh-comment-id:2627100132 --> @brammeleman commented on GitHub (Jan 31, 2025): I completely understand! Do you mind if I change the issue description with something like > Remove or provide an option to disable the 'Delete all messages' confirmation dialog.
Author
Owner

@axllent commented on GitHub (Jan 31, 2025):

That sounds good. Thanks 👍

<!-- gh-comment-id:2627183342 --> @axllent commented on GitHub (Jan 31, 2025): That sounds good. Thanks 👍
Author
Owner

@gitgrub commented on GitHub (Feb 1, 2025):

Just an idea for the "delete all" task without interaction: what about using the API with curl? Depending on how you run your software, this would be the first step.

<!-- gh-comment-id:2628938475 --> @gitgrub commented on GitHub (Feb 1, 2025): Just an idea for the "delete all" task without interaction: what about using the API with curl? Depending on how you run your software, this would be the first step.
Author
Owner

@axllent commented on GitHub (Feb 6, 2025):

I have just released v1.22.1 which now contains a toggle setting to skip those confirmation dialogs. Hopefully this saves you a few clicks.

Image

<!-- gh-comment-id:2638621496 --> @axllent commented on GitHub (Feb 6, 2025): I have just released [v1.22.1](https://github.com/axllent/mailpit/releases/tag/v1.22.1) which now contains a toggle setting to skip those confirmation dialogs. Hopefully this saves you a few clicks. ![Image](https://github.com/user-attachments/assets/4e24d9ac-3d8a-4af0-be6a-db2971027833)
Author
Owner

@brammeleman commented on GitHub (Feb 6, 2025):

Thanks a lot!! I'm so happy ;-)

<!-- gh-comment-id:2639366461 --> @brammeleman commented on GitHub (Feb 6, 2025): Thanks a lot!! I'm so happy ;-)
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#275
No description provided.