How to delete all the emails in Quarantine

Hello,

Is there a way for me to do a partial for subject?
Lets say I get a bunch of email with certain words or phrases, I want to delete all the messages in quarantine with the word "gift" in the subject how would I do that?

My example would be if I wanted to count all those with gift within the subject, not as the entire subject.
pmgdq -a count -u gift


Thanks
 
Last edited:
Is there a way for me to do a partial for subject?
Lets say I get a bunch of email with certain words or phrases, I want to delete all the messages in quarantine with the word "gift" in the subject how would I do that?
there is not ready cli tool for that - either use the GUI (manual selection) - or you need to script that yourself with the REST API (and something like jq):

https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/quarantine/spam
(for connecting to the API - take a look at the wiki-page for PVE (the APIs are similar) https://pve.proxmox.com/wiki/Proxmox_VE_API)
and
https://cameronnokes.com/blog/jq-cheatsheet/

I hope this helps!
 
any tips to clean only one virus quarantine completely? sometimes accumulate a lot of unwanted items and it is very laborious to remove one by one through the web interface;