aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdn/MDNHelper.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-04-09 19:46:40 +0000
committerVincent Richard <[email protected]>2005-04-09 19:46:40 +0000
commit18dacf00af4de081d2fbe4b0f0646a5e70f9099a (patch)
tree15ee7173da1f009d3ea317af0a36da9922b02d79 /src/mdn/MDNHelper.cpp
parentFixed bug in Base64 decoding. (diff)
downloadvmime-18dacf00af4de081d2fbe4b0f0646a5e70f9099a.tar.gz
vmime-18dacf00af4de081d2fbe4b0f0646a5e70f9099a.zip
Added attachMDNRequest().
Diffstat (limited to 'src/mdn/MDNHelper.cpp')
-rw-r--r--src/mdn/MDNHelper.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mdn/MDNHelper.cpp b/src/mdn/MDNHelper.cpp
index 72dfeb93..324807e0 100644
--- a/src/mdn/MDNHelper.cpp
+++ b/src/mdn/MDNHelper.cpp
@@ -27,6 +27,23 @@ namespace vmime {
namespace mdn {
+void MDNHelper::attachMDNRequest(message* msg, const mailboxList& mailboxes)
+{
+ header* hdr = msg->getHeader();
+
+ hdr->DispositionNotificationTo().setValue(mailboxes);
+}
+
+
+void MDNHelper::attachMDNRequest(message* msg, const mailbox& mbox)
+{
+ mailboxList mboxList;
+ mboxList.appendMailbox(mbox.clone());
+
+ attachMDNRequest(msg, mboxList);
+}
+
+
const std::vector <sendableMDNInfos> MDNHelper::getPossibleMDNs(const message* msg)
{
std::vector <sendableMDNInfos> result;