aboutsummaryrefslogtreecommitdiffstats
path: root/src/component.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/component.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/component.cpp')
-rw-r--r--src/component.cpp12
1 files changed, 12 insertions, 0 deletions
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 <ref <component> > children = getChildComponents();
+ utility::stream::size_type totalSize = 0;
+
+ for (std::vector <ref <component> >::iterator it = children.begin() ; it != children.end() ; ++it)
+ totalSize += (*it)->getGeneratedSize(ctx);
+
+ return totalSize;
+}
+
+
} // vmime