Ability to clean mail queue via CLI filtering messages with the same pattern
There is a way to clean mail queue with command like the following:
plesk bin mailserver --help | grep queue
--clean-mail-queue Removes all the messages from the mail
But sometimes it is required to clear not all messages but only ones that have the same subject, sender, recipient, etc.
In Plesk GUI there is already this functionality in Tools & Settings > Mail queue, opening search bar with arrow icon.
It would be great to have the similar functionality for CLI command.
Thank you for your input! We will consider this functionality in upcoming releases if it is popular. Everyone, please continue voting for this feature if you consider it important.