Skip to content

Commit

Permalink
Eliminated non-essential warning log in mailto:// parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Oct 4, 2024
1 parent 130edde commit 260d30a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apprise/plugins/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,14 +1440,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
Expand Down

0 comments on commit 260d30a

Please sign in to comment.