From d5748f4c372342e403ceeab060b3fad5222b5828 Mon Sep 17 00:00:00 2001 From: daniele caldarini Date: Tue, 11 Apr 2023 11:20:57 +0200 Subject: [PATCH] fixed acl --- email-parser/app/imap/imap_extraction.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/email-parser/app/imap/imap_extraction.py b/email-parser/app/imap/imap_extraction.py index 47adccb..4d817ce 100644 --- a/email-parser/app/imap/imap_extraction.py +++ b/email-parser/app/imap/imap_extraction.py @@ -126,9 +126,11 @@ def extract(self): } if self.index_acl: - payload["acl"] = acl_list + payload["acl"] = { + "email": acl_list + } else: - payload["acl"] = [] + payload["acl"] = {} try: post_message(ingestion_url, payload, 10)