mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-06-02 00:49:44 +00:00
Ensuring mail from is set
This commit is contained in:
@@ -776,7 +776,8 @@ def parse_report_email(input_, offline=False, nameservers=None,
|
||||
subject = None
|
||||
feedback_report = None
|
||||
sample = None
|
||||
logger.info("Parsing mail from {0}".format(msg_headers["From"]))
|
||||
if "From" in msg_headers:
|
||||
logger.info("Parsing mail from {0}".format(msg_headers["From"]))
|
||||
if "Subject" in msg_headers:
|
||||
subject = msg_headers["Subject"]
|
||||
for part in msg.walk():
|
||||
|
||||
Reference in New Issue
Block a user