R. David Murray <rdmur...@bitdance.com> added the comment: You have to do an 'encode' to get the wrapped header. __str__ uses maxlinelen=None.
However, there does seem to be a problem with the line wrapping algorithm revealed by your example: it is only doing a line break at the ';', not at any spaces. I will look in to this. ---------- title: email.header.Header doesn't fold headers -> email.header.Header doesn't fold headers at spaces _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11492> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com