aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/messaging/imap/IMAPFolder.cpp2
-rw-r--r--vmime/messaging/imap/IMAPParser.hpp3
3 files changed, 9 insertions, 1 deletions
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 <[email protected]>
+
+ * messaging/imap/IMAPFolder.cpp: fixed missing space in "STATUS" command +
+ parsing error in 'status_info'.
+
2005-04-30 Vincent Richard <[email protected]>
* 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 <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;
}