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;
}

View File

@ -33,7 +33,7 @@
////////////////////////////////////////////////////////////////////////////
#include "version.hpp"
const std::string kaz::LAST_VERSION_NUM ("2.11");
const std::string kaz::LAST_VERSION_NUM ("2.12");
const std::string kaz::LAST_VERSION_DATE ("2022-12-27");
const std::string kaz::LAST_VERSION (LAST_VERSION_NUM+" "+LAST_VERSION_DATE+" eMailShrinker");