From ebc0db9bf91689adcf79dfd1c558549b86169c71 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 15 Jul 2013 19:04:21 +0200 Subject: [PATCH] Fixed IMAP tag not incrementing. --- src/net/imap/IMAPConnection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/imap/IMAPConnection.cpp b/src/net/imap/IMAPConnection.cpp index 6aa129be..935de8cf 100644 --- a/src/net/imap/IMAPConnection.cpp +++ b/src/net/imap/IMAPConnection.cpp @@ -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; }