3 Commits
Author SHA1 Message Date
Jonathan Bastien-Filiatrault 6b4127f920 Don't insert an extra space at the end of the line when doing a soft fold.
Trailing whitespaces are best avoided.
2018-12-12 21:30:56 -05:00
Jonathan Bastien-Filiatrault 2d474d6b04 Do not take the name length into account on the second line when folding.
Setting namelen could have no effect, my guess is that this was the
original intention of the code.

This results in more efficient usage of lines.
2018-12-12 21:14:08 -05:00
Jonathan Bastien-Filiatrault 882d14c514 Avoid making a fresh slice of the whole email on each iteration.
An update to yesterday's patch. Should avoid copying the mail byte
string more than once.

Tested on Python 2.7 and 3.6.
2018-12-12 13:41:48 -05:00