diff options
-rw-r--r-- | src/mailboxList.cpp | 7 | ||||
-rw-r--r-- | vmime/mailboxList.hpp | 6 |
2 files changed, 13 insertions, 0 deletions
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 <addressList> mailboxList::toAddressList() const +{ + return m_list.clone().dynamicCast <addressList>(); +} + + } // 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 <ref <mailbox> > getMailboxList(); + /** Return a list of addresses. + * + * @return list of addresses + */ + ref <addressList> toAddressList() const; + private: addressList m_list; |