[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2013-11-27 Thread Illirgway
Illirgway added the comment: base64, quoted-printable and 7bit messages only use ASCII range of characters so raw_message.decode('ascii') == raw_message.decode('latin1') == etc. == raw_message.decode('utf-8') due to internal representation of utf-8 characters P.S. Python 3.4.0 beta 1 Lib

[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2013-11-27 Thread Illirgway
Illirgway added the comment: because strict throws an exception (for example, on raw win1251) which brings down production smtp daemon and replace embeds ugly characters into received (and passed) email messages -- ___ Python tracker rep

[issue19662] smtpd.py should not decode utf-8

2013-11-26 Thread Illirgway
Illirgway added the comment: Here is another patch for fixing this issue: https://github.com/Illirgway/cpython/commit/12d7c59e0564c408a65dd782339f585ab6b14b34 Sorry for my bad english -- nosy: +Illirgway versions: +Python 3.3 -Python 3.5 Added file: http://bugs.python.org/file32861