fix no content-type in source mbox

This commit is contained in:
2022-12-27 14:48:12 +01:00
parent 18d1214681
commit c9ab7d4f49
4 changed files with 12 additions and 5 deletions

View File

@ -491,6 +491,8 @@ void MainAttachment::rewriteHeaders (ifstream &mbox, ofstream &outbox, const Hea
boundary = "--"+boundary+"--";
boundaryMiddleSize = boundary.length () - 2;
}
if (startPos >= mime.length ())
startPos = mime.length ()-1;
mime.insert (startPos, contentType);
outbox << mime << flush;
}