From ec368e293af7dc3b687022052dfb349eb8bd28bf Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Thu, 3 Oct 2024 22:37:25 -0400 Subject: [PATCH] Eliminated non-essential warning log in mailto:// parsing (#1216) --- apprise/plugins/email.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apprise/plugins/email.py b/apprise/plugins/email.py index 776873018..8651c08a8 100644 --- a/apprise/plugins/email.py +++ b/apprise/plugins/email.py @@ -52,7 +52,6 @@ from ..conversion import convert_between from ..utils import is_ipaddr, is_email, parse_emails, is_hostname, parse_bool from ..locale import gettext_lazy as _ -from ..logger import logger try: import pgpy @@ -1440,14 +1439,9 @@ def parse_url(url): from_addr = NotifyEmail.unquote(results['qsd']['from']) if 'name' in results['qsd'] and len(results['qsd']['name']): - # Depricate use of both `from=` and `name=` in the same url as - # they will be synomomus of one another in the future. from_addr = formataddr( (NotifyEmail.unquote(results['qsd']['name']), from_addr), charset='utf-8') - logger.warning( - 'Email name= and from= are synonymous; ' - 'use one or the other.') elif 'name' in results['qsd'] and len(results['qsd']['name']): # Extract from name to associate with from address