diff --git a/src/mailboxList.cpp b/src/mailboxList.cpp index 63a622a8..8050db92 100644 --- a/src/mailboxList.cpp +++ b/src/mailboxList.cpp @@ -210,4 +210,11 @@ void mailboxList::generate(utility::outputStream& os, const string::size_type ma } +ref mailboxList::toAddressList() const +{ + return m_list.clone().dynamicCast (); +} + + } // vmime + diff --git a/vmime/mailboxList.hpp b/vmime/mailboxList.hpp index 2ec66848..3295c40e 100644 --- a/vmime/mailboxList.hpp +++ b/vmime/mailboxList.hpp @@ -145,6 +145,12 @@ public: */ const std::vector > getMailboxList(); + /** Return a list of addresses. + * + * @return list of addresses + */ + ref toAddressList() const; + private: addressList m_list;