Commit d06cfd45 authored by Volker Krause's avatar Volker Krause
Browse files

Parent Content pointer are no longer needed for KMime headers.

Will be removed from KMime shortly.
parent 240c9260
......@@ -399,13 +399,13 @@ QString KAMail::appendBodyAttachments(KMime::Message& message, JobData& data)
// Set the content type
KMimeType::Ptr type = KMimeType::findByUrl(url);
KMime::Headers::ContentType* ctype = new KMime::Headers::ContentType(content);
KMime::Headers::ContentType* ctype = new KMime::Headers::ContentType;
ctype->fromUnicodeString(type->name(), autoDetectCharset(type->name()));
ctype->setName(attachment, "local");
content->setHeader(ctype);
// Set the encoding
KMime::Headers::ContentTransferEncoding* cte = new KMime::Headers::ContentTransferEncoding(content);
KMime::Headers::ContentTransferEncoding* cte = new KMime::Headers::ContentTransferEncoding;
cte->setEncoding(KMime::Headers::CEbase64);
cte->setDecoded(false);
content->setHeader(cte);
......
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