Editorial changes in DSN attributes

This commit is contained in:
Jan Osusky 2020-08-21 13:13:55 +02:00
parent 64ef65e03c
commit d4cc5cfc9b
3 changed files with 13 additions and 13 deletions

View File

@ -34,25 +34,25 @@ namespace vmime {
namespace net {
dsnAttributes::dsnAttributes(string dsnNotify, string dsnRet, string dsnEnvelopId)
dsnAttributes::dsnAttributes(const string& dsnNotify, const string& dsnRet, const string& dsnEnvelopId)
: m_notifications(dsnNotify), m_returnFormat(dsnRet), m_envelopId(dsnEnvelopId) {
}
string dsnAttributes::notificationConditions() const {
string dsnAttributes::getNotificationConditions() const {
return m_notifications;
}
string dsnAttributes::returnFormat() const {
string dsnAttributes::getReturnFormat() const {
return m_returnFormat;
}
string dsnAttributes::envelopId() const {
string dsnAttributes::getEnvelopId() const {
return m_envelopId;
}

View File

@ -70,25 +70,25 @@ public:
* @param dsnRet content of DSN - full message or headers only ("FULL" or "HDRS")
* @param dsnEnvelopId envelop ID to be able to pair the DSN with original message (plain text not in "<" ">")
*/
dsnAttributes(string dsnNotify, string dsnRet, string dsnEnvelopId);
dsnAttributes(const string& dsnNotify, const string& dsnRet, const string& dsnEnvelopId);
/** Returns comma separated list of notification conditions as specified in RFC 1891
*
* @return comma separated list of notification conditions as specified in RFC 1891
*/
string notificationConditions() const;
string getNotificationConditions() const;
/** Returns requested format of the notification (RET parameter of the ESMTP MAIL command).
*
* @return requested format of the notification.
*/
string returnFormat() const;
string getReturnFormat() const;
/** Returns envelop ID used pair the DSN with the original message.
*
* @return envelop ID used pair the DSN with the original message.
*/
string envelopId() const;
string getEnvelopId() const;
private:

View File

@ -231,8 +231,8 @@ void SMTPTransport::sendEnvelope(
commands->addCommand(
SMTPCommand::MAIL(
sender, hasSMTPUTF8 && needSMTPUTF8, hasSize ? size : 0,
dsnAttrs.notificationConditions(),
dsnAttrs.envelopId()
dsnAttrs.getNotificationConditions(),
dsnAttrs.getEnvelopId()
)
);
@ -241,8 +241,8 @@ void SMTPTransport::sendEnvelope(
commands->addCommand(
SMTPCommand::MAIL(
expeditor, hasSMTPUTF8 && needSMTPUTF8, hasSize ? size : 0,
dsnAttrs.notificationConditions(),
dsnAttrs.envelopId()
dsnAttrs.getNotificationConditions(),
dsnAttrs.getEnvelopId()
)
);
}
@ -255,7 +255,7 @@ void SMTPTransport::sendEnvelope(
const mailbox& mbox = *recipients.getMailboxAt(i);
commands->addCommand(SMTPCommand::RCPT(mbox, hasSMTPUTF8 && needSMTPUTF8,
dsnAttrs.notificationConditions()));
dsnAttrs.getNotificationConditions()));
}
// Prepare sending of message data