diff options
| author | Vincent Richard <[email protected]> | 2005-03-25 20:49:54 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-03-25 20:49:54 +0000 |
| commit | 433f21263f7f34456be4aeba27f467ca1ad06d1a (patch) | |
| tree | a3b8fb270fcd608acf36a20481a1ecaee7dbac80 /src/mdn/sendableMDNInfos.cpp | |
| parent | Added a section about warnings at compilation. (diff) | |
| download | vmime-433f21263f7f34456be4aeba27f467ca1ad06d1a.tar.gz vmime-433f21263f7f34456be4aeba27f467ca1ad06d1a.zip | |
Basic support for MDN (RFC-3798).
Diffstat (limited to 'src/mdn/sendableMDNInfos.cpp')
| -rw-r--r-- | src/mdn/sendableMDNInfos.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/mdn/sendableMDNInfos.cpp b/src/mdn/sendableMDNInfos.cpp new file mode 100644 index 00000000..e8ae8b62 --- /dev/null +++ b/src/mdn/sendableMDNInfos.cpp @@ -0,0 +1,67 @@ +// +// VMime library (http://www.vmime.org) +// Copyright (C) 2002-2005 Vincent Richard <[email protected]> +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// + +#include "vmime/mdn/sendableMDNInfos.hpp" + + +namespace vmime { +namespace mdn { + + +sendableMDNInfos::sendableMDNInfos(const message* msg, const mailbox& mbox) + : m_msg(msg), m_mailbox(mbox) +{ +} + + +sendableMDNInfos::sendableMDNInfos(const sendableMDNInfos& other) + : MDNInfos() +{ + copyFrom(other); +} + + +sendableMDNInfos& sendableMDNInfos::operator=(const sendableMDNInfos& other) +{ + copyFrom(other); + return (*this); +} + + +const message* sendableMDNInfos::getMessage() const +{ + return (m_msg); +} + + +const mailbox& sendableMDNInfos::getRecipient() const +{ + return (m_mailbox); +} + + +void sendableMDNInfos::copyFrom(const sendableMDNInfos& other) +{ + m_msg = other.m_msg; + m_mailbox = other.m_mailbox; +} + + +} // mdn +} // vmime |
