aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-14 23:46:01 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-14 23:46:01 +0000
commit675fddac2f879d81b45e76cd72b50a0638cbc8ff (patch)
treec3d65b8416d95477e20f85f4cfdef5346f06add2 /gpgwin.cpp
parentdon't try to save file if abort is hit (diff)
downloadgpg4usb-675fddac2f879d81b45e76cd72b50a0638cbc8ff.tar.gz
gpg4usb-675fddac2f879d81b45e76cd72b50a0638cbc8ff.zip
quotedPrintableDecode copied from KCodecs
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@332 34ebc366-c3a9-4b3c-9f84-69acf7962910
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;