Script to Delete the Spam Queue on Zimbra with Confirmation

On previous script, we can delete spam from queue by passing sender or recipient address on the script :

pfdel email-spammer

But what about situation where spammer filling up queue with random sender and recipient, and it tooks time to delete each message. Yes, we can use Postfix powerful binary, with postsuper -d ALL but it will remove entire message, including normal message.

Below is a modified script, to delete spam queue by confirming whether the message are legitimate or not. It will display sender and recipient so we can check each message accordingly.