Fixed IMAP tag not incrementing.
This commit is contained in:
parent
fdeaec5e05
commit
ebc0db9bf9
@ -653,10 +653,7 @@ void IMAPConnection::initHierarchySeparator()
|
|||||||
void IMAPConnection::send(bool tag, const string& what, bool end)
|
void IMAPConnection::send(bool tag, const string& what, bool end)
|
||||||
{
|
{
|
||||||
if (tag && !m_firstTag)
|
if (tag && !m_firstTag)
|
||||||
{
|
|
||||||
++(*m_tag);
|
++(*m_tag);
|
||||||
m_firstTag = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if VMIME_DEBUG
|
#if VMIME_DEBUG
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
@ -687,6 +684,9 @@ void IMAPConnection::send(bool tag, const string& what, bool end)
|
|||||||
m_socket->send("\r\n");
|
m_socket->send("\r\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (tag)
|
||||||
|
m_firstTag = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user