void MDNHelper::attachMDNRequest(ref <message> msg, const mailbox& mbox) { mailboxList mboxList; mboxList.appendMailbox(mbox.clone().dynamicCast <mailbox>()); attachMDNRequest(msg, mboxList); }
void MDNHelper::attachMDNRequest(std::shared_ptr<message> msg, const mailbox& mbox) { mailboxList mboxList; //mboxList.appendMailbox(mbox.clone().dynamicCast <mailbox>()); TODO shared mboxList.appendMailbox(std::dynamic_pointer_cast<mailbox>(mbox.clone())); attachMDNRequest(msg, mboxList); }