diff options
| author | Vincent Richard <[email protected]> | 2006-02-05 21:24:15 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2006-02-05 21:24:15 +0100 |
| commit | 64ba82c100cbddca9befb28a6b146b7cc813b5ef (patch) | |
| tree | d02d0768f0e06927258f93e561450d4ac5a05599 | |
| parent | Changed copyright year to 2006. (diff) | |
| download | vmime-64ba82c100cbddca9befb28a6b146b7cc813b5ef.tar.gz vmime-64ba82c100cbddca9befb28a6b146b7cc813b5ef.zip | |
Added toAddressList().
| -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; |
