From 895b07cae9741f44a1272b2f3875f8dd94763222 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 24 Jun 2013 15:32:40 +0200 Subject: Added support for SIZE SMTP extension (RFC-1870). --- src/component.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/component.cpp') diff --git a/src/component.cpp b/src/component.cpp index 7226d0d2..d2138b60 100644 --- a/src/component.cpp +++ b/src/component.cpp @@ -233,5 +233,17 @@ void component::setParsedBounds(const string::size_type start, const string::siz } +utility::stream::size_type component::getGeneratedSize(const generationContext& ctx) +{ + std::vector > children = getChildComponents(); + utility::stream::size_type totalSize = 0; + + for (std::vector >::iterator it = children.begin() ; it != children.end() ; ++it) + totalSize += (*it)->getGeneratedSize(ctx); + + return totalSize; +} + + } // vmime -- cgit v1.2.3