Correcting an issue where dbg_output was not defined when the server was

unreachable due to an optimization in PR#56.  Since message-id is more
useful to better pin point the correct message, removing dbg_output.

Also fixing https://github.com/OfflineIMAP/offlineimap3/issues/62 by
correcting broken multipart boundaries or raising an error if as_bytes()
fails.  Related python bug submitted: https://bugs.python.org/issue43818
although this workaround should be sufficent in the interim.

Signed-off-by: Joseph Ishac <jishac@nasa.gov>
This commit is contained in:
Joseph Ishac
2021-04-14 14:54:25 -04:00
parent f024bb9e4c
commit a4532294ae
2 changed files with 23 additions and 18 deletions

View File

@ -26,7 +26,6 @@ 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