This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author labrat
Recipients barry, labrat, pas, r.david.murray
Date 2014-11-07.09:57:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415354256.07.0.964612400284.issue22684@psf.upfronthosting.co.za>
In-reply-to
Content
The troublesome header formatting is:

  >>> import email.policy
  >>> email.policy.SMTP.fold_binary('Cc', 'notmuch\n\t<public-public-notmuch-gxuj+Tv9EO5zyzON3hdc1g-wOFGN7rlS/M9smdsby/KFg@plane.gmane.org>,\n\tpublic-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org,\n\tRainer M Krug <public-R.M.Krug-Re5JQEeQqe8AvxtiuMwx3w@plane.gmane.org>,\n\tJeremy Nickurak\n\t<public-public-not-much-kexSNQTsIoD754YsiR0rpA-wOFGN7rlS/M9smdsby/KFg@plane.gmane.org>')
  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.
History
Date User Action Args
2014-11-07 09:57:36labratsetrecipients: + labrat, barry, r.david.murray, pas
2014-11-07 09:57:36labratsetmessageid: <1415354256.07.0.964612400284.issue22684@psf.upfronthosting.co.za>
2014-11-07 09:57:36labratlinkissue22684 messages
2014-11-07 09:57:35labratcreate