[Case 74869] WHM - Mail Queue - Delete All buttons / in the filtered search context

timwoolfson

Member
May 24, 2006
6
1
153
By Mail Queue, I mean "Mail Queue Manager"
When the mail queue is filtered by the search.
Either the buttons delete all and deliver all should have 2 warnings.
1. This applies to ALL the messages on the queue NOT all the messages in your filtered search.
2. The current warning.
Or, possibly better.
You must clear your search before using the Delete all or Deliver all option.

When the script is running - there should be a big red STOP button!
 
Last edited:

blahnana

Registered
Mar 17, 2013
4
0
1
cPanel Access Level
DataCenter Provider
Hello :)

I can see how that aspect of the interface might be confusing. Please open a feature request for this via:

Submit A Feature Request

Thank you.
It's not just confusing, the documentation is incorrect and the interface needs to be less ambiguous.

To delete all listed emails:
Click Delete All from the table.
Delete All doesn't delete all "Listed" emails, which is what you want if you have pages and pages of emails matching your search. This needs to be fixed ASAP, no "STOP" and incorrect documentation is causing problems.

If I seem to be speaking from experience, you guessed correctly.

Tristan
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
I have opened an internal case to correct the documentation page regarding the "Delete All" feature in the Mail Queue Manager. For reference, the internal case number is 74865. I have also opened an internal case regarding the existence of the "Deliver/Delete All" options in the results table. That case number is 74869. I will update this thread with the outcome of both cases (a feature request may be necessary for case 74869).

Thank you.
 

blahnana

Registered
Mar 17, 2013
4
0
1
cPanel Access Level
DataCenter Provider
Thanks cPanelMichael, I think that will be very helpful and I look forward to the changes.

For those who get stuck in the same problem and find this thread, a workaround at the CLI level for deleting mails from an exim mail queue using a search pattern goes something like this:

exiqgrep -i -f '[email protected]' | xargs exim -Mrm

To delete all emails from the queue with sender [email protected]. Check the options for exiqgrep before using, and using exiqgrep without the pipe will allow you to list the emails you're going to delete beforehand:

exiqgrep -f '[email protected]'

Thanks again for the prompt reply Michael. Please feel free to delete this post if it's inappropriate for the thread.

Tristan
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
For those who get stuck in the same problem and find this thread, a workaround at the CLI level for deleting mails from an exim mail queue using a search pattern goes something like this:
I would like to note that it's still possible to delete emails listed under the search results in Web Host Manager. There are options to delete or deliver the selected emails on the upper left of the results table.

Thank you.
 

blahnana

Registered
Mar 17, 2013
4
0
1
cPanel Access Level
DataCenter Provider
It is possible to delete them, but as far as I know you can only do it one page at a time using that method, Michael?

At the moment, if your queue gets out of control it can take a very long time to go through page by page performing the query and then the delete (which using the json tool takes a considerable time even on an otherwise unloaded server it seems). The GUI method is the preferred way if you have a few errant emails (and obviously is the easier and more foolproof way, my earlier comment aside), but if you get stuck with an abused email queue that you need to clear ASAP it's difficult to use the GUI tool in a meaningful way.

My apologies if I seem like I'm harping on about this, I just wanted to clearly establish what I feel are the shortcomings of the tool. In general, as a Linux admin for a very long time, I am very happy with cPanel/WHM, and I do not wish to give the impression otherwise.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
I encourage you to open a feature request for the overall behavior and usability of this option via:

Submit A Feature Request

While a case is open for the documentation and usage of the "Delete/Deliver All" option, a feature request is a better way of requesting a change to the overall interface or usage.

Thank you.
 

timwoolfson

Member
May 24, 2006
6
1
153