[issue22684] message.as_bytes() produces recursion depth exceeded

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> works for me stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue22684] message.as_bytes() produces recursion depth exceeded

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11. -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-19 Thread Jan Malte
Jan Malte added the comment: for the same objects as_string() is working correctly -- ___ Python tracker ___

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is minimized example. from email._header_value_parser import * al = AddressList([Address([Mailbox([NameAddr([DisplayName([Atom([ValueTerminal('example', 'atext'), CFWSList([WhiteSpaceTerminal('\t', 'fws')])])]), AngleAddr([ValueTerminal('<',

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Even more minimized artificial example: from email._header_value_parser import * import email.policy tl = TokenList([ TokenList([ ValueTerminal('x', 'atext'), WhiteSpaceTerminal(' ', 'fws'), ValueTerminal('x'*76, 'atext'), ]),

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-13 Thread Jan Malte
Jan Malte added the comment: Are there any news about this bug report? -- nosy: +janmalte ___ Python tracker ___

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: Here's an example from the notmuch list. You can trigger the exception in Python 3.4 with: import email.policy import mailbox mbox = mailbox.mbox('msg.mbox', factory=None, create=False) message = mbox[0]

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: The troublesome header formatting is: import email.policy email.policy.SMTP.fold_binary('Cc',

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread W. Trevor King
W. Trevor King added the comment: In email._header_value_parser._Folded.append_if_fits, if I shift: if token.has_fws: ws = token.pop_leading_fws() if ws is not None: self.stickyspace += str(ws) stickyspace_len

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-11-07 Thread R. David Murray
R. David Murray added the comment: Something like that. That folding algorithm is a bit...bizantine. I need to sit down and completely rewrite it, I think. But maybe I can fix this problem in the meantime, until I have time to do that. -- versions: +Python 3.5

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-10-21 Thread Pas
New submission from Pas: Please see the attached traceback (or this http://pastebin.com/WYinRGie for fancy colors). It depends on message size, we're trying to send Multipart MIME messages (a PDF attached, that has an image embedded). After editing flask_mail.py to use the fallback (

[issue22684] message.as_bytes() produces recursion depth exceeded

2014-10-21 Thread R. David Murray
R. David Murray added the comment: It looks like a bug, but I'm not sure why as_bytes would trigger it but not as_string. Can you supply a copy of the message that fails? The as_string version (assuming the content was all ascii) should be enough to reproduce the issue, since it appears to