From b989427215c2be6b10915da0450e91238db46604 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Thu, 13 Oct 2022 19:53:32 -0400 Subject: [PATCH] Allow extended characters in ID of email address (#693) --- apprise/plugins/NotifyForm.py | 3 ++- apprise/plugins/NotifyXML.py | 3 ++- apprise/utils.py | 8 ++++---- test/test_apprise_utils.py | 24 ++++++++++++++++++++++++ test/test_config_base.py | 1 + test/test_plugin_email.py | 2 +- test/test_plugin_mailgun.py | 2 +- test/test_plugin_smtp2go.py | 2 +- test/test_plugin_sparkpost.py | 2 +- 9 files changed, 37 insertions(+), 10 deletions(-) diff --git a/apprise/plugins/NotifyForm.py b/apprise/plugins/NotifyForm.py index ba81e5d2..600713b3 100644 --- a/apprise/plugins/NotifyForm.py +++ b/apprise/plugins/NotifyForm.py @@ -129,7 +129,8 @@ class NotifyForm(NotifyBase): }, } - def __init__(self, headers=None, method=None, payload=None, params=None, **kwargs): + def __init__(self, headers=None, method=None, payload=None, params=None, + **kwargs): """ Initialize Form Object diff --git a/apprise/plugins/NotifyXML.py b/apprise/plugins/NotifyXML.py index c238caf6..96c2f561 100644 --- a/apprise/plugins/NotifyXML.py +++ b/apprise/plugins/NotifyXML.py @@ -136,7 +136,8 @@ class NotifyXML(NotifyBase): }, } - def __init__(self, headers=None, method=None, payload=None, params=None, **kwargs): + def __init__(self, headers=None, method=None, payload=None, params=None, + **kwargs): """ Initialize XML Object diff --git a/apprise/utils.py b/apprise/utils.py index 334711de..f1bbd40a 100644 --- a/apprise/utils.py +++ b/apprise/utils.py @@ -153,10 +153,10 @@ URL_DETAILS_RE = re.compile( # - user@example.com # - label+user@example.com GET_EMAIL_RE = re.compile( - r'(([\s"\']+)?(?P[^:<"\']+)?[:<\s"\']+)?' + r'(([\s"\']+)?(?P[^:<\'"]+)?[:<\s\'"]+)?' r'(?P((?P