aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/imap/IMAPMessagePartContentHandler.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2012-07-30 18:45:17 +0000
committerVincent Richard <[email protected]>2012-07-30 18:45:17 +0000
commitff462a5ee1077e53e29e49d451f8eb2a74312635 (patch)
treedea394325916f37f5abc7da473dcbd5d07d74117 /src/net/imap/IMAPMessagePartContentHandler.cpp
parentFixed compilation warning. (diff)
downloadvmime-ff462a5ee1077e53e29e49d451f8eb2a74312635.tar.gz
vmime-ff462a5ee1077e53e29e49d451f8eb2a74312635.zip
Fixed body part extraction (only body should be extracted).
Diffstat (limited to 'src/net/imap/IMAPMessagePartContentHandler.cpp')
-rw-r--r--src/net/imap/IMAPMessagePartContentHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/imap/IMAPMessagePartContentHandler.cpp b/src/net/imap/IMAPMessagePartContentHandler.cpp
index 85c6ec21..c2cd6479 100644
--- a/src/net/imap/IMAPMessagePartContentHandler.cpp
+++ b/src/net/imap/IMAPMessagePartContentHandler.cpp
@@ -121,7 +121,7 @@ void IMAPMessagePartContentHandler::extract
// No decoding to perform
if (!isEncoded())
{
- msg->extractPart(part, os, progress);
+ msg->extractImpl(part, os, progress, 0, -1, IMAPMessage::EXTRACT_BODY);
}
// Need to decode data
else
@@ -130,7 +130,7 @@ void IMAPMessagePartContentHandler::extract
std::ostringstream oss;
utility::outputStreamAdapter tmp(oss);
- msg->extractPart(part, tmp, NULL);
+ msg->extractImpl(part, tmp, NULL, 0, -1, IMAPMessage::EXTRACT_BODY);
// Encode temporary buffer to output stream
utility::inputStreamStringAdapter is(oss.str());