Message138795
Just a note after running Joe's example. smtplib is affected by this issue in 3.x, but the example produces different results in 3.x: smtpd doesn't keep the connection open due to UnicodeDecodeError when the data from the ssl handshake cannot be decoded as utf-8:
error: uncaptured python exception, closing channel <__main__.SMTPChannel connected 127.0.0.1:34160 at 0xb739a4cc> (<class 'UnicodeDecodeError'>:'utf8' codec can't decode bytes in position 13-14: invalid continuation byte [/mnt/data/catalin/hacking/cpython/default/Lib/asyncore.py|read|83] [/mnt/data/catalin/hacking/cpython/default/Lib/asyncore.py|handle_read_event|442] [/mnt/data/catalin/hacking/cpython/default/Lib/asynchat.py|handle_read|190] [/mnt/data/catalin/hacking/cpython/default/Lib/smtpd.py|collect_incoming_data|278]) |
|
Date |
User |
Action |
Args |
2011-06-21 19:52:31 | catalin.iacob | set | recipients:
+ catalin.iacob, pitrou, r.david.murray, joeshaw, kasun |
2011-06-21 19:52:31 | catalin.iacob | set | messageid: <1308685951.39.0.318380326275.issue12378@psf.upfronthosting.co.za> |
2011-06-21 19:52:30 | catalin.iacob | link | issue12378 messages |
2011-06-21 19:52:30 | catalin.iacob | create | |
|