Add email date on debug of mail processing (#462)

This commit is contained in:
Anael Mobilia
2024-02-19 18:53:02 -05:00
committed by GitHub
parent 9e9065837e
commit 93278bc023
+1 -1
View File
@@ -1016,7 +1016,7 @@ def parse_report_email(input_, offline=False, ip_db_path=None,
smtp_tls_report = None
sample = None
if "From" in msg_headers:
logger.info("Parsing mail from {0}".format(msg_headers["From"]))
logger.info("Parsing mail from {0} on {1}".format(msg_headers["From"], date))
if "Subject" in msg_headers:
subject = msg_headers["Subject"]
for part in msg.walk():