aboutsummaryrefslogtreecommitdiffstats
path: root/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp
index 35ff4e0d..15e24cf1 100644
--- a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp
+++ b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp
@@ -73,6 +73,9 @@ void SMTPChunkingOutputStreamAdapter::sendChunk
m_progress->progress(m_totalSent, m_totalSize);
}
+ if (m_connection->getTracer())
+ m_connection->getTracer()->traceSendBytes(count);
+
// If PIPELINING is not supported, read one response for this BDAT command
if (!m_connection->hasExtension("PIPELINING"))
{
@@ -143,6 +146,9 @@ void SMTPChunkingOutputStreamAdapter::flush()
if (m_progress)
m_progress->stop(m_totalSize);
+
+ if (m_connection->getTracer())
+ m_connection->getTracer()->traceSendBytes(m_bufferSize);
}