From 7e5a9a404fcb9555f40b6c47adf9c79df9c8a95a Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 20 Oct 2010 09:37:39 +0000 Subject: [PATCH] Return failed email address in exception for RCPT TO. --- src/net/smtp/SMTPTransport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/smtp/SMTPTransport.cpp b/src/net/smtp/SMTPTransport.cpp index 71f166bc..204daae6 100644 --- a/src/net/smtp/SMTPTransport.cpp +++ b/src/net/smtp/SMTPTransport.cpp @@ -583,7 +583,7 @@ void SMTPTransport::send(const mailbox& expeditor, const mailboxList& recipients if ((resp = readResponse())->getCode() != 250) { internalDisconnect(); - throw exceptions::command_error("RCPT TO", resp->getText()); + throw exceptions::command_error("RCPT TO", resp->getText(), mbox.getEmail()); } }