Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Shuffle/python-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed May 28, 2024
2 parents 9495c5c + 594b559 commit 861b3b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions email/1.3.0/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ def parse_email_headers(self, email_headers):
# Basic function to check headers in an email
# Can be dumped in in pretty much any format
def analyze_headers(self, headers):
self.logger.info("Input headers: %s" % headers)

# Raw
if isinstance(headers, str):
headers = self.parse_email_headers(headers)
Expand All @@ -531,6 +533,11 @@ def analyze_headers(self, headers):
headers = headers["header"]
if "header" in headers:
headers = headers["header"]

if "headers" in headers:
headers = headers["headers"]
if "headers" in headers:
headers = headers["headers"]

if not isinstance(headers, list):
newheaders = []
Expand All @@ -548,6 +555,7 @@ def analyze_headers(self, headers):

headers = newheaders

#self.logger.info("Parsed headers: %s" % headers)

spf = False
dkim = False
Expand Down

0 comments on commit 861b3b6

Please sign in to comment.