Commit 98717e61 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 319f4e78
......@@ -64,8 +64,9 @@ void MultipartJob::process()
Q_ASSERT(d->resultContent == nullptr); // Not processed before.
Q_ASSERT(!d->subtype.isEmpty());
d->resultContent = new KMime::Content;
d->resultContent->contentType(true)->setMimeType("multipart/" + d->subtype);
d->resultContent->contentType()->setBoundary(KMime::multiPartBoundary());
auto contentType = d->resultContent->contentType(true);
contentType->setMimeType("multipart/" + d->subtype);
contentType->setBoundary(KMime::multiPartBoundary());
d->resultContent->contentTransferEncoding()->setEncoding(KMime::Headers::CE7Bit);
d->resultContent->setPreamble("This is a multi-part message in MIME format.\n");
for (KMime::Content *c : qAsConst(d->subjobContents)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment