Adding a handler to detect the unlikely edge case where a message may

have an improperly quoted boundary that can cause the python library to
fail to reproduce the original message with msg.as_bytes().  See:
https://bugs.python.org/issue43818 and
https://github.com/OfflineIMAP/offlineimap3/issues/62
This commit is contained in:
Joseph Ishac
2021-04-13 00:01:26 -04:00
parent 6a45eef3b5
commit b78af75064
2 changed files with 51 additions and 0 deletions

View File

@ -26,6 +26,7 @@ from email import policy
from email.parser import BytesParser
from email.generator import BytesGenerator
from email.utils import parsedate_tz, mktime_tz
from email.errors import NoBoundaryInMultipartDefect
from offlineimap import threadutil
from offlineimap.ui import getglobalui