Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
d06cfd45
Commit
d06cfd45
authored
Aug 12, 2015
by
Volker Krause
Browse files
Parent Content pointer are no longer needed for KMime headers.
Will be removed from KMime shortly.
parent
240c9260
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamail.cpp
View file @
d06cfd45
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment