diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mdn/receivedMDNInfos.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mdn/receivedMDNInfos.cpp b/src/mdn/receivedMDNInfos.cpp index 48665696..876ba3d9 100644 --- a/src/mdn/receivedMDNInfos.cpp +++ b/src/mdn/receivedMDNInfos.cpp @@ -69,11 +69,18 @@ const disposition receivedMDNInfos::getDisposition() const } +const string receivedMDNInfos::getContentMIC() const +{ + return m_contentMIC; +} + + void receivedMDNInfos::copyFrom(const receivedMDNInfos& other) { m_msg = other.m_msg; m_omid = other.m_omid; m_disp = other.m_disp; + m_contentMIC = other.m_contentMIC; } @@ -109,6 +116,13 @@ void receivedMDNInfos::extract() try { m_disp = *fields.Disposition()->getValue().dynamicCast <const disposition>(); } catch (exceptions::no_such_field&) { /* Ignore */ } + + try + { + text t = *fields.findField("Received-content-MIC")->getValue().dynamicCast <const text>(); + m_contentMIC = t.generate(); + } + catch (exceptions::no_such_field&) { /* Ignore */ } } } } |