Fixed extraction of root part body.

This commit is contained in:
Vincent Richard 2010-09-06 20:20:45 +00:00
parent 5debcfccfa
commit c4d595624b

View File

@ -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
{