summaryrefslogtreecommitdiffstats
path: root/kmail/kmmsgpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmmsgpart.cpp')
-rw-r--r--kmail/kmmsgpart.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/kmail/kmmsgpart.cpp b/kmail/kmmsgpart.cpp
index 085e36c0f..112236c03 100644
--- a/kmail/kmmsgpart.cpp
+++ b/kmail/kmmsgpart.cpp
@@ -284,6 +284,9 @@ void KMMessagePart::setBodyEncodedBinary(const TQByteArray& aStr)
assert( codec );
// Nice: We can use the convenience function :-)
mBody = codec->encode( aStr );
+ // QP encoding does CRLF -> LF conversion, which can change the size after decoding again
+ // and a size mismatch triggers an assert in various other methods
+ mBodyDecodedSize = -1;
break;
}
default:
@@ -585,7 +588,7 @@ TQString KMMessagePart::fileName(void) const
const TQCString str = mContentDisposition.mid(startOfFilename,
endOfFilename-startOfFilename+1)
.stripWhiteSpace();
- return KMMsgBase::decodeRFC2047String(str, charset());
+ return KMMsgBase::decodeRFC2047String(str);
}
return TQString::null;