diff --git a/src/messageBuilder.cpp b/src/messageBuilder.cpp index 7c51ec8a..d4efaa28 100644 --- a/src/messageBuilder.cpp +++ b/src/messageBuilder.cpp @@ -207,6 +207,12 @@ const addressList& messageBuilder::getRecipients() const } +addressList& messageBuilder::getRecipients() +{ + return (m_to); +} + + void messageBuilder::setRecipients(const addressList& recipients) { m_to = recipients; @@ -219,6 +225,12 @@ const addressList& messageBuilder::getCopyRecipients() const } +addressList& messageBuilder::getCopyRecipients() +{ + return (m_cc); +} + + void messageBuilder::setCopyRecipients(const addressList& cc) { m_cc = cc; @@ -231,6 +243,12 @@ const addressList& messageBuilder::getBlindCopyRecipients() const } +addressList& messageBuilder::getBlindCopyRecipients() +{ + return (m_bcc); +} + + void messageBuilder::setBlindCopyRecipients(const addressList& bcc) { m_bcc = bcc; diff --git a/src/messageBuilder.hpp b/src/messageBuilder.hpp index f928d1d5..e03e78c8 100644 --- a/src/messageBuilder.hpp +++ b/src/messageBuilder.hpp @@ -67,6 +67,12 @@ public: */ const addressList& getRecipients() const; + /** Return the recipients of the message (To:). + * + * return recipients of the message + */ + addressList& getRecipients(); + /** Set the recipients of the message (To:). * * @param recipients list of recipients @@ -79,6 +85,12 @@ public: */ const addressList& getCopyRecipients() const; + /** Return the copy recipients of the message (Cc:). + * + * @return copy recipients of the message + */ + addressList& getCopyRecipients(); + /** Set the copy recipients of the message (Cc:). * * @param cc list of copy recipients @@ -91,6 +103,12 @@ public: */ const addressList& getBlindCopyRecipients() const; + /** Return the blind-copy recipients of the message (Bcc:). + * + * @return blind-copy recipients of the message + */ + addressList& getBlindCopyRecipients(); + /** Set the blind-copy recipients of the message (Bcc:). * * @param bcc list of blind-copy recipients