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)