From 9196d5c3421d828708f3667a94b2e074bfafdeca Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 18 May 2010 13:52:27 +0000 Subject: Added helper function to construct parsed message from net message. Splitted IMAP source files. --- src/bodyPart.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/bodyPart.cpp') diff --git a/src/bodyPart.cpp b/src/bodyPart.cpp index 20bb1026..7d60461e 100644 --- a/src/bodyPart.cpp +++ b/src/bodyPart.cpp @@ -37,6 +37,15 @@ bodyPart::bodyPart() } +bodyPart::bodyPart(weak_ref parentPart) + : m_header(vmime::create
()), + m_body(vmime::create ()), + m_parent(parentPart) +{ + m_body->setParentPart(thisRef().dynamicCast ()); +} + + void bodyPart::parse(const string& buffer, const string::size_type position, const string::size_type end, string::size_type* newPosition) { -- cgit v1.2.3