Quarrantine email report customization info

Sep 17, 2020
315
20
38
Hello All,

I have read through a few posts asking a similar if not exact question, however none seem to have an answer and a few links to the API reference, but I'm not able to find anything there.

I'm trying to find out a list of available fields for the spam quarantine report for customization (spamreport-custom.tt).

Any direction would be appreciated.
 
Last edited:
Anything particular you would need?

the spamreport-verbose.tt contains and uses most available information (items contains an array of quarantine mail per mailbox, pmail the address of the mailbox, and each item contains the subject, senders, spaminformation for the quarantined mail and managhref contains the link the user can use to access the quarantine)

Which data exactly is put into the variables available in the template can be seen in the source-code (of pmgqm):
https://git.proxmox.com/?p=pmg-api....510684b8ee03ce515ecf2ba780ce1026f;hb=HEAD#l61
https://git.proxmox.com/?p=pmg-api....10684b8ee03ce515ecf2ba780ce1026f;hb=HEAD#l332

I hope this helps!
 
was hoping to find the sender, but not with an e-mail link, the subject without the link as well, just informational per se.
the (envelope) sender of a particular e-mail should be in 'item.envelope_sender' (there is no mailto: in front - so this should not be treated as a link afair), the subject is in 'item.subject'

I hope this helps
 
Yes, I tried those and I do get it as a URL.
I beleive the delimiter/trigger for the variables are the [% %], then the variable
item.from
item.sender_from
I tried some variants of variables that I saw in the code, but they returned URL's or mail link.
Is there some other way to tell it to not return the url or link and only the value?

Thanks
 
check the 'source-code' of the mail (my guess is that your client is simply making the addresses clickable)
 
No the code is from the original code, there is no added linking , but I think what they are wanting to remove is the email address link, which I think will be created by default in certain mail applications.

Than you!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!