From c4d595624b58cc6958d5b72db1a6653b817f6186 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 6 Sep 2010 20:20:45 +0000 Subject: [PATCH] Fixed extraction of root part body. --- src/net/imap/IMAPMessage.cpp | 7 +++++-- 1 file 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 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 {