diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..80a0a93 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: [fedelemantuano] diff --git a/.gitignore b/.gitignore index f1f1e3a..9964195 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ mail_parser.egg-info/ venv venv27 venv3 +venv-mailparser report/ diff --git a/mailparser/const.py b/mailparser/const.py index f72e8e9..2ac985a 100644 --- a/mailparser/const.py +++ b/mailparser/const.py @@ -71,7 +71,10 @@ r'(?:envelope-sender\s+<(?P.+?)>)', # datetime comes after ; at the end - r';\s*(?P.*)' + r';\s*(?P.*)', + + # sendgrid datetime + r'(?P\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{9} \+0000 UTC) m=\+\d+\.\d+' ] RECEIVED_COMPILED_LIST = [ diff --git a/mailparser/version.py b/mailparser/version.py index 9c913b6..0c64e19 100644 --- a/mailparser/version.py +++ b/mailparser/version.py @@ -17,7 +17,7 @@ limitations under the License. """ -__version__ = "3.12.0" +__version__ = "3.13.0" if __name__ == "__main__": print(__version__) diff --git a/requirements-dev.txt b/requirements-dev.txt index 9dc5ac3..c8fa366 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,7 @@ # tool -ipaddress==1.0.23 -simplejson==3.17.0 -six==1.14.0 +ipaddress>=1.0.23; python_version < '3.3' +simplejson>=3.17.0 +six>=1.14.0 # dev coverage==5.0.2 diff --git a/requirements.txt b/requirements.txt index 4694111..82f6bdc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -ipaddress==1.0.23 -simplejson==3.17.0 -six==1.14.0 \ No newline at end of file +ipaddress>=1.0.23; python_version < '3.3' +simplejson>=3.17.0 +six>=1.14.0 \ No newline at end of file