mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

SUP-15: fix_leading_dot() cuts in the middle of a quoted character #234

Closed thrawn01 closed 4 years ago

thrawn01 commented 4 years ago

Purpose

quoted-printable fix_leading_dot() no longer cuts the line in the middle of a quoted character. This caused random unicode encoding issues when sending emails that had a specific case where the new line started with a '.' but also ended on a quoted character.

Implementation

Discovered quopri.ishex() is not identifying hex characters properly if the provided string had more than 1 character.