aboutsummaryrefslogtreecommitdiffstats
path: root/src/bodyPart.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2010-05-18 13:52:27 +0000
committerVincent Richard <[email protected]>2010-05-18 13:52:27 +0000
commit9196d5c3421d828708f3667a94b2e074bfafdeca (patch)
tree154fe458b34c0c651c6ab6b2f5a375a3ba0bb599 /src/bodyPart.cpp
parentFixed parsing of header field value with no data on the first line (folding). (diff)
downloadvmime-9196d5c3421d828708f3667a94b2e074bfafdeca.tar.gz
vmime-9196d5c3421d828708f3667a94b2e074bfafdeca.zip
Added helper function to construct parsed message from net message. Splitted IMAP source files.
Diffstat (limited to 'src/bodyPart.cpp')
-rw-r--r--src/bodyPart.cpp9
1 files changed, 9 insertions, 0 deletions
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 <vmime::bodyPart> parentPart)
+ : m_header(vmime::create <header>()),
+ m_body(vmime::create <body>()),
+ m_parent(parentPart)
+{
+ m_body->setParentPart(thisRef().dynamicCast <bodyPart>());
+}
+
+
void bodyPart::parse(const string& buffer, const string::size_type position,
const string::size_type end, string::size_type* newPosition)
{