W. Trevor King added the comment:
The troublesome header formatting is:
>>> import email.policy
>>> email.policy.SMTP.fold_binary('Cc',
'notmuch\n\t<public-public-notmuch-gxuj+Tv9EO5zyzON3hdc1g-wOFGN7rlS/M9smdsby/[email protected]>,\n\[email protected],\n\tRainer
M Krug <[email protected]>,\n\tJeremy
Nickurak\n\t<public-public-not-much-kexSNQTsIoD754YsiR0rpA-wOFGN7rlS/M9smdsby/[email protected]>')
Traceback (most recent call last):
…
RuntimeError: maximum recursion depth exceeded while getting the str of an
object
Trimming that down a bit, a minimal trigger seems to be:
>>> email.policy.SMTP.fold_binary('Cc',
'a\n\taaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,\n\ta')
Traceback…
Where removing much of anything gives a working fold.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22684>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com