Skip to content

Commit

Permalink
Version 1.1
Browse files Browse the repository at this point in the history
What's new in version 1.1:
* Support of e-mails with charset encodig “cp-850”
* Minor code fix
  • Loading branch information
drego85 committed May 24, 2019
1 parent f2e0eae commit 2430671
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@
import warnings
import argparse
import ipaddress
import encodings
import tldextract
from email import policy
from bs4 import BeautifulSoup
from email.parser import BytesParser

warnings.simplefilter(action="ignore", category=FutureWarning)
tldcache = tldextract.TLDExtract(cache_file="./.tld_set")
encodings.aliases.aliases["cp_850"] = "cp850"


def email_analysis(filename, exclude_private_ip, check_spf):
urlList = []
hopList = []
hopListIP = []
hopListIP = []
domainList = []
hopListIPnoPrivate = []

Expand Down Expand Up @@ -177,7 +178,7 @@ def email_analysis(filename, exclude_private_ip, check_spf):


def main():
version = "1.0"
version = "1.1"
parser = argparse.ArgumentParser()
parser.add_argument("filename", help="Analyze an eMail (.eml format)")
parser.add_argument("-x", "--exclude-private-ip", action="store_true", dest="excprip",
Expand Down

0 comments on commit 2430671

Please # to comment.