From 13da0727c5717d257e1102a3ffb06a18d24e3d9d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 3 May 2005 16:13:34 +0000 Subject: [PATCH] Fixed missing space in STATUS command + parse error in 'status_info'. --- ChangeLog | 5 +++++ src/messaging/imap/IMAPFolder.cpp | 2 +- vmime/messaging/imap/IMAPParser.hpp | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9b582a50..db343837 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ VERSION 0.7.1cvs ================ +2005-05-03 Vincent Richard + + * messaging/imap/IMAPFolder.cpp: fixed missing space in "STATUS" command + + parsing error in 'status_info'. + 2005-04-30 Vincent Richard * utility/childProcess.{hpp|cpp}: added a 'childProcess' class to help diff --git a/src/messaging/imap/IMAPFolder.cpp b/src/messaging/imap/IMAPFolder.cpp index 39404c82..91bf0177 100644 --- a/src/messaging/imap/IMAPFolder.cpp +++ b/src/messaging/imap/IMAPFolder.cpp @@ -1461,7 +1461,7 @@ void IMAPFolder::status(int& count, int& unseen) command << "STATUS "; command << IMAPUtils::quoteString(IMAPUtils::pathToString (m_connection->hierarchySeparator(), getFullPath())); - command << "(MESSAGES UNSEEN)"; + command << " (MESSAGES UNSEEN)"; // Send the request m_store->m_connection->send(true, command.str(), true); diff --git a/vmime/messaging/imap/IMAPParser.hpp b/vmime/messaging/imap/IMAPParser.hpp index 368215b0..98deac3a 100644 --- a/vmime/messaging/imap/IMAPParser.hpp +++ b/vmime/messaging/imap/IMAPParser.hpp @@ -4344,7 +4344,10 @@ public: m_status_info_list.push_back(parser.get (line, &pos)); while (!parser.check >(line, &pos, true)) + { + parser.check (line, &pos); m_status_info_list.push_back(parser.get (line, &pos)); + } m_type = STATUS; }