]> git.proxmox.com Git - pmg-api.git/commit - src/PMG/API2/Quarantine.pm
API2/Quarantine: add attachment quarantine api paths
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 10 Oct 2019 09:21:59 +0000 (11:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Oct 2019 13:59:32 +0000 (15:59 +0200)
commit03662e7bacf6beeb1990436ccd512b33e8f8d11d
tree8efe33c992bde93e7f2d31ca6ae6c5a08be9b97a
parent173cfd5ded748b714439d0cf953e9803bbc0a4f8
API2/Quarantine: add attachment quarantine api paths

this introduces 3 new api paths in /quarantine/

* GET attachment
  lists all mails in the attachment quarantine, similar to the virus one

* GET listattachments
  lists all attachments for a specific mail in the quarantine

* GET download
  serves the attachment of a mail as a download to the user

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-By: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-By: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/API2/Quarantine.pm