pmgsh download spam email (.eml) for sa-learn

ernestneo

Member
Sep 5, 2021
14
0
6
40
pmg:/quarantine/download> get -mailid C0R512T262712179 200 OK encountered object 'IO::File=GLOB(0x55a93761fdc0)', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /usr/bin/pmgsh line 288. pmg:/quarantine/download>

Anything done wrong here?
 
the download API method would return a filehandle which is handled fine by the http-server of pmgproxy, but not so well when trying to serialize it to JSON ...

the content api method should provide what you need:
Code:
pmgsh get  /quarantine/content -id C0R512T262712179

I hope this helps!
 

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!