Commit 0628360b authored by Martin Koller's avatar Martin Koller
Browse files

do not lose address headers when decrypting mail

Differential Revision: https://phabricator.kde.org/D28399
BUG: 413022
parent 16b719ff
From: Daniel Vratil <dvratil@kde.org> From: "Daniel Vratil (test)" <dvratil@kde.org>
To: KMail Test <kmail@test.kde> To: KMail Test <kmail@test.kde>
Date: Tue, 01 Aug 2017 07:50:04 +0000 Date: Tue, 01 Aug 2017 07:50:04 +0000
Subject: It's time to get schwifty! Subject: It's time to get schwifty!
......
From: Daniel Vratil <dvratil@kde.org> From: "Daniel Vratil (test)" <dvratil@kde.org>
To: KMail Test <kmail@test.kde> To: KMail Test <kmail@test.kde>
Date: Tue, 01 Aug 2017 07:50:04 +0000 Date: Tue, 01 Aug 2017 07:50:04 +0000
Subject: It's time to get schwifty! Subject: It's time to get schwifty!
......
From: Daniel Vratil <dvratil@kde.org> From: "Daniel Vratil (test)" <dvratil@kde.org>
To: KMail Test <kmail@test.kde> To: KMail Test <kmail@test.kde>
Date: Tue, 01 Aug 2017 07:50:04 +0000 Date: Tue, 01 Aug 2017 07:50:04 +0000
Subject: It's time to get schwifty! Subject: It's time to get schwifty!
......
...@@ -164,7 +164,7 @@ void CryptoUtils::copyHeader(const KMime::Headers::Base *header, KMime::Message: ...@@ -164,7 +164,7 @@ void CryptoUtils::copyHeader(const KMime::Headers::Base *header, KMime::Message:
if (!newHdr) { if (!newHdr) {
newHdr = new KMime::Headers::Generic(header->type()); newHdr = new KMime::Headers::Generic(header->type());
} }
newHdr->fromUnicodeString(header->asUnicodeString(), "UTF-8"); newHdr->from7BitString(header->as7BitString(false));
msg->appendHeader(newHdr); msg->appendHeader(newHdr);
} }
......
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