[issue41599] get/set_payload deprecated, but get_set_content do not provide full replacement functionality

2020-08-20 Thread Erik Quaeghebeur
New submission from Erik Quaeghebeur : >From Python 3.6 onwards, get/set_payload methods are deprecated on the basic >email message class, email.message.EmailMessage (changed from >email.message.Message). The get/set_content methods are suggested instead. >However, with get/set

[issue41585] policy.max_line_length is incorrectly assumed to never be None

2020-08-20 Thread Erik Quaeghebeur
Erik Quaeghebeur added the comment: The script that triggered the issue can be found at https://github.com/equaeghe/mailfilters/blob/master/html2alternative.py You'll have to remove ", cte='8bit'" on line 68 to expose the bug (that was added as a workaro

[issue41585] policy.max_line_length is incorrectly assumed to never be None

2020-08-18 Thread Erik Quaeghebeur
New submission from Erik Quaeghebeur : IĀ got the following error (Python 3.7.8): Traceback (most recent call last): File "/home/equaeghe/.local/bin/html2alternative.py", line 68, in replaceable.add_alternative(plain) File "/usr/lib/python3.7/email/message.py&

[issue41553] encoded-word abused for header line folding causes RFC 2047 violation

2020-08-14 Thread Erik Quaeghebeur
Erik Quaeghebeur added the comment: We also shouldn't forget Resent-Message-Id. So in the header registry <https://github.com/python/cpython/blob/2a9f709ba23c8f6aa2bed821aacc4e7baecde383/Lib/email/headerregistry.py#L562>, 'message-id': MessageIDHeader, should be rep

[issue41553] encoded-word abused for header line folding causes RFC 2047 violation

2020-08-14 Thread Erik Quaeghebeur
Erik Quaeghebeur added the comment: Note that In-Reply-To can also contain multiple message ids: <https://tools.ietf.org/html/rfc5322#section-3.6.4>. It should be treated the same as References. When you say that a message_id parser exists, then that means it is not applied to the Mess

[issue41553] encoded-word abused for header line folding causes RFC 2047 violation

2020-08-14 Thread Erik Quaeghebeur
New submission from Erik Quaeghebeur : Encoded-word is apparently used for header line folding sometimes. This appears to me as an abuse of this encoding technique. However, that is not the main issue: it also causes a violation of RFC 2074, as it also encodes message id's:

[issue11245] Implementation of IMAP IDLE in imaplib?

2016-01-08 Thread Erik Quaeghebeur
Changes by Erik Quaeghebeur : -- nosy: +equaeghe ___ Python tracker <http://bugs.python.org/issue11245> ___ ___ Python-bugs-list mailing list Unsubscribe: