aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2010-09-06 20:20:45 +0000
committerVincent Richard <[email protected]>2010-09-06 20:20:45 +0000
commitc4d595624b58cc6958d5b72db1a6653b817f6186 (patch)
tree524876d5a7f70a5171347923149a6d86e82265a3 /src
parentFixed pointer-type argument for gnutls_credentials_set (thanks to Mike Smellie). (diff)
downloadvmime-c4d595624b58cc6958d5b72db1a6653b817f6186.tar.gz
vmime-c4d595624b58cc6958d5b72db1a6653b817f6186.zip
Fixed extraction of root part body.
Diffstat (limited to 'src')
-rw-r--r--src/net/imap/IMAPMessage.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/imap/IMAPMessage.cpp b/src/net/imap/IMAPMessage.cpp
index adfef011..bbdba69e 100644
--- a/src/net/imap/IMAPMessage.cpp
+++ b/src/net/imap/IMAPMessage.cpp
@@ -273,9 +273,12 @@ void IMAPMessage::extract(ref <const part> p, utility::outputStream& os,
if (peek) command << ".PEEK";
command << "[";
- if (section.str().empty() && headerOnly)
+ if (section.str().empty())
{
- command << "HEADER";
+ if (headerOnly)
+ command << "HEADER";
+ else
+ command << "TEXT";
}
else
{