[pmg-devel] [PATCH pmg-api 1/1] api: quarantine: add 'content-disposition' field to listattachments
Dominik Csapak
d.csapak at proxmox.com
Mon Nov 7 15:36:18 CET 2022
this can be useful to filter for 'real' attachments vs standard mail
mime parts
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PMG/API2/Quarantine.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PMG/API2/Quarantine.pm b/src/PMG/API2/Quarantine.pm
index 09d9cc9..a75ef20 100644
--- a/src/PMG/API2/Quarantine.pm
+++ b/src/PMG/API2/Quarantine.pm
@@ -991,6 +991,7 @@ my $get_attachments = sub {
id => $id,
name => $name,
size => $size,
+ 'content-disposition' => $part->head->mime_attr('content-disposition'),
'content-type' => $part->head->mime_attr('content-type'),
};
$entry->{path} = $attachment_path if $with_path;
--
2.30.2
More information about the pmg-devel
mailing list