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