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

ernestneo

Member
Sep 5, 2021
14
0
21
41
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!