Skip to content

Commit

Permalink
Exscript.util.mail: allow newlines as email address separator
Browse files Browse the repository at this point in the history
  • Loading branch information
knipknap committed Sep 11, 2017
1 parent 032e1cf commit b98c36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Exscript/util/mail.py
Expand Up @@ -103,7 +103,7 @@ def _get_var_from_header_line(line):
def _cleanup_mail_addresses(receipients):
if isinstance(receipients, list):
receipients = ','.join(receipients)
rcpt = re.split(r'\s*[,;]\s*', receipients.lower())
rcpt = re.split(r'\s*[,;\r\n]\s*', receipients.lower())
return [str(r) for r in rcpt if r.strip()]

#
Expand Down

0 comments on commit b98c36e

Please sign in to comment.