aboutsummaryrefslogtreecommitdiffstats
path: root/src/bodyPart.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-06-24 13:32:40 +0000
committerVincent Richard <[email protected]>2013-06-24 13:32:40 +0000
commit895b07cae9741f44a1272b2f3875f8dd94763222 (patch)
tree6532de59e01676c78b423b5de5ebc1411c7da111 /src/bodyPart.cpp
parentReturn after sending message when sending is supported. (diff)
downloadvmime-895b07cae9741f44a1272b2f3875f8dd94763222.tar.gz
vmime-895b07cae9741f44a1272b2f3875f8dd94763222.zip
Added support for SIZE SMTP extension (RFC-1870).
Diffstat (limited to 'src/bodyPart.cpp')
-rw-r--r--src/bodyPart.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bodyPart.cpp b/src/bodyPart.cpp
index 32544ba8..f63fd670 100644
--- a/src/bodyPart.cpp
+++ b/src/bodyPart.cpp
@@ -82,6 +82,12 @@ void bodyPart::generateImpl
}
+utility::stream::size_type bodyPart::getGeneratedSize(const generationContext& ctx)
+{
+ return m_header->getGeneratedSize(ctx) + 2 /* CRLF */ + m_body->getGeneratedSize(ctx);
+}
+
+
ref <component> bodyPart::clone() const
{
ref <bodyPart> p = vmime::create <bodyPart>();