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