aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-02-05 20:24:15 +0000
committerVincent Richard <[email protected]>2006-02-05 20:24:15 +0000
commit64ba82c100cbddca9befb28a6b146b7cc813b5ef (patch)
treed02d0768f0e06927258f93e561450d4ac5a05599
parentChanged copyright year to 2006. (diff)
downloadvmime-64ba82c100cbddca9befb28a6b146b7cc813b5ef.tar.gz
vmime-64ba82c100cbddca9befb28a6b146b7cc813b5ef.zip
Added toAddressList().
-rw-r--r--src/mailboxList.cpp7
-rw-r--r--vmime/mailboxList.hpp6
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;