Fixed missing space in STATUS command + parse error in 'status_info'.

This commit is contained in:
Vincent Richard 2005-05-03 16:13:34 +00:00
parent 3ba18e1a5f
commit 13da0727c5
3 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,11 @@
VERSION 0.7.1cvs
================
2005-05-03 Vincent Richard <vincent@vincent-richard.net>
* messaging/imap/IMAPFolder.cpp: fixed missing space in "STATUS" command +
parsing error in 'status_info'.
2005-04-30 Vincent Richard <vincent@vincent-richard.net>
* utility/childProcess.{hpp|cpp}: added a 'childProcess' class to help

View File

@ -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);

View File

@ -4344,7 +4344,10 @@ public:
m_status_info_list.push_back(parser.get <status_info>(line, &pos));
while (!parser.check <one_char <')'> >(line, &pos, true))
{
parser.check <SPACE>(line, &pos);
m_status_info_list.push_back(parser.get <status_info>(line, &pos));
}
m_type = STATUS;
}