diff options
| author | Vincent Richard <[email protected]> | 2010-09-06 20:20:45 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2010-09-06 20:20:45 +0000 |
| commit | c4d595624b58cc6958d5b72db1a6653b817f6186 (patch) | |
| tree | 524876d5a7f70a5171347923149a6d86e82265a3 /src/net/imap/IMAPMessage.cpp | |
| parent | Fixed pointer-type argument for gnutls_credentials_set (thanks to Mike Smellie). (diff) | |
| download | vmime-c4d595624b58cc6958d5b72db1a6653b817f6186.tar.gz vmime-c4d595624b58cc6958d5b72db1a6653b817f6186.zip | |
Fixed extraction of root part body.
Diffstat (limited to 'src/net/imap/IMAPMessage.cpp')
| -rw-r--r-- | src/net/imap/IMAPMessage.cpp | 7 |
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 { |
