aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 1742b4a..3d02ec6 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -525,7 +525,17 @@ void GpgWin::parseMime(QByteArray *message) {
foreach(MimePart tmp, mime->parts()) {
if(tmp.getValue("Content-Type")=="text/plain"
&& tmp.getValue("Content-Transfer-Encoding") != "base64") {
- pText.append(QString(tmp.body));
+
+ QByteArray body;
+ if(tmp.getValue("Content-Transfer-Encoding")=="quoted-printable") {
+
+ Mime::quotedPrintableDecode(tmp.body, body);
+ } else {
+ body = tmp.body;
+ }
+
+ pText.append(QString(body));
+
} else {
(mAttachments->addMimePart(&tmp));
showmadock=true;