From 10e880a4690bc77485aab79362c451c216d6fb4f Mon Sep 17 00:00:00 2001 From: Tom King Date: Thu, 12 Jul 2018 11:12:48 +0100 Subject: [PATCH] chg: Added email-header attribute --- pymisp/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pymisp/api.py b/pymisp/api.py index b5878be..2fbfec1 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -766,6 +766,10 @@ class PyMISP(object): """Add an email atachment""" return self.add_named_attribute(event, 'email-attachment', email, category, to_ids, comment, distribution, proposal, **kwargs) + def add_email_header(self, event, email, category='Payload delivery', to_ids=True, comment=None, distribution=None, proposal=False, **kwargs): + """Add an email header""" + return self.add_named_attribute(event, 'email-header', email, category, to_ids, comment, distribution, proposal, **kwargs) + # ##### Target attributes ##### def add_target_email(self, event, target, category='Targeting data', to_ids=True, comment=None, distribution=None, proposal=False, **kwargs):