From d74ec346ce34b3c4fbc62758676831e9bb0a01dc Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Sun, 19 Aug 2018 11:55:29 -0400 Subject: [PATCH] 3.7.3 - Fix saving attachment from forensic sample to Elasticsearch --- CHANGELOG.md | 5 +++++ parsedmarc/__init__.py | 2 +- parsedmarc/elastic.py | 4 ++-- setup.py | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aa4fd8..a935322 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +3.7.3 +----- + +- Fix saving attachment from forensic sample to Elasticsearch + 3.7.2 ----- diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 4e721a7..de1f9c9 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -43,7 +43,7 @@ import imapclient.exceptions import dateparser import mailparser -__version__ = "3.7.2" +__version__ = "3.7.3" logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) diff --git a/parsedmarc/elastic.py b/parsedmarc/elastic.py index e0ff7ff..31d812d 100644 --- a/parsedmarc/elastic.py +++ b/parsedmarc/elastic.py @@ -129,8 +129,8 @@ class _ForensicSampleDoc(InnerDoc): address=address)) def add_attachment(self, filename, content_type): - self.attachments.append(filename=filename, - content_type=content_type) + self.attachments.append(_EmailAttachmentDoc(filename=filename, + content_type=content_type)) class _ForensicReportDoc(Document): diff --git a/setup.py b/setup.py index d478433..20b7ab2 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup from codecs import open from os import path -__version__ = "3.7.2" +__version__ = "3.7.3" description = "A Python package and CLI for parsing aggregate and " \ "forensic DMARC reports"