[issue8489] smtplib.SMTP.login() breaks with unicode input

2010-04-21 Thread Domen
Domen added the comment: Plone currently just passes unicode data around, maybe additional documentation note will do for avoiding such trobules. Thanks for quick response. -- ___ Python tracker _

[issue8489] smtplib.SMTP.login() breaks with unicode input

2010-04-21 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: SMTP (RFC 2821) doesn't support non-ASCII envelope addresses. A better behavior here would be for connection.login to raise a ValueError or a TypeError whenever a non-str is passed in. RFC 5336, though, adds the UTF8SMTP extension, which adds support fo

[issue8489] smtplib.SMTP.login() breaks with unicode input

2010-04-21 Thread Domen
New submission from Domen : Module smtplib, line 574, in login Module smtplib, line 538, in encode_cram_md5 Module hmac, line 72, in __init__ TypeError: character mapping must return integer, None or unicode Following traceback occurs when doing connection.login(u'foo...@domain.com', 'justd