Fixed extraction of message parts in IMAP.

This commit is contained in:
Vincent Richard 2014-02-08 01:08:02 +01:00
parent d49ce7cd4d
commit 3fe31cbc0a

View File

@ -341,9 +341,6 @@ void IMAPMessage::extractImpl
// header + body
if ((extractFlags & EXTRACT_HEADER) && (extractFlags & EXTRACT_BODY))
throw exceptions::operation_not_supported();
// body only
else if (extractFlags & EXTRACT_BODY)
command << ".TEXT";
// header only
else if (extractFlags & EXTRACT_HEADER)
command << ".MIME"; // "MIME" not "HEADER" for parts