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 {