Fixed IMAP tag not incrementing.

This commit is contained in:
Vincent Richard 2013-07-15 19:04:21 +02:00
parent fdeaec5e05
commit ebc0db9bf9

View File

@ -653,10 +653,7 @@ void IMAPConnection::initHierarchySeparator()
void IMAPConnection::send(bool tag, const string& what, bool end)
{
if (tag && !m_firstTag)
{
++(*m_tag);
m_firstTag = false;
}
#if VMIME_DEBUG
std::ostringstream oss;
@ -687,6 +684,9 @@ void IMAPConnection::send(bool tag, const string& what, bool end)
m_socket->send("\r\n");
}
#endif
if (tag)
m_firstTag = false;
}