зеркало из https://github.com/mozilla/pjs.git
display failing recipient for smtp errors after rcpt to command, initial patch by Martin.vGagern@gmx.net, with some additions by me, 374388 r=ch.ey@gmx.net/bienvenu, sr=bienvenu/mscott
This commit is contained in:
Родитель
ca475e8ef2
Коммит
a7f02175e2
|
@ -82,9 +82,6 @@
|
|||
## @name NS_ERROR_SENDING_FROM_COMMAND
|
||||
12514=An error occurred while sending mail. The mail server responded: %s. Please verify that your email address is correct in your Mail preferences and try again.
|
||||
|
||||
## @name NS_ERROR_SENDING_RCPT_COMMAND
|
||||
12515=An error occurred while sending mail. The mail server responded: %s. Please check the message recipients and try again.
|
||||
|
||||
## @name NS_ERROR_SENDING_DATA_COMMAND
|
||||
12516=An (SMTP) error occurred while sending mail. The server responded: %s.
|
||||
|
||||
|
@ -253,6 +250,9 @@ sendAnyway=Send anyway
|
|||
## @name NS_ERROR_COULD_NOT_LOGIN_TO_SMTP_SERVER_WITH_STARTTLS2
|
||||
12574=An error occurred sending mail: Unable to connect to SMTP server %S via STARTTLS since it doesn't offer STARTTLS In EHLO reponse. Please verify that your Mail/News account settings are correct and try again.
|
||||
|
||||
## @name NS_ERROR_SENDING_RCPT_COMMAND
|
||||
12575=An error occurred while sending mail. The mail server responded: %1$s. Please check the message recipient %2$s and try again.
|
||||
|
||||
## Strings use for the save message dialog shown when the user close a message compose window
|
||||
saveDlogTitle=Save Message
|
||||
saveDlogMessage=Message has not been sent. Do you want to save the message in the Drafts folder?
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#define NS_MSG_ERROR_WRITING_FILE NS_MSG_GENERATE_FAILURE(12512)
|
||||
#define NS_ERROR_COULD_NOT_LOGIN_TO_SMTP_SERVER NS_MSG_GENERATE_FAILURE(12513)
|
||||
#define NS_ERROR_SENDING_FROM_COMMAND NS_MSG_GENERATE_FAILURE(12514)
|
||||
#define NS_ERROR_SENDING_RCPT_COMMAND NS_MSG_GENERATE_FAILURE(12515)
|
||||
#define NS_ERROR_SENDING_DATA_COMMAND NS_MSG_GENERATE_FAILURE(12516)
|
||||
#define NS_ERROR_SENDING_MESSAGE NS_MSG_GENERATE_FAILURE(12517)
|
||||
#define NS_ERROR_POST_FAILED NS_MSG_GENERATE_FAILURE(12518)
|
||||
|
@ -90,5 +89,6 @@
|
|||
|
||||
#define NS_ERROR_COULD_NOT_LOGIN_TO_SMTP_SERVER_WITH_STARTTLS1 NS_MSG_GENERATE_FAILURE(12573)
|
||||
#define NS_ERROR_COULD_NOT_LOGIN_TO_SMTP_SERVER_WITH_STARTTLS2 NS_MSG_GENERATE_FAILURE(12574)
|
||||
#define NS_ERROR_SENDING_RCPT_COMMAND NS_MSG_GENERATE_FAILURE(12575)
|
||||
|
||||
#endif /* _nsComposeStringBundle_H__ */
|
|
@ -1329,10 +1329,6 @@ PRInt32 nsSmtpProtocol::SendMailResponse()
|
|||
buffer += ">";
|
||||
buffer += CRLF;
|
||||
}
|
||||
/* take the address we sent off the list (move the pointer to just
|
||||
past the terminating null.) */
|
||||
m_addresses += PL_strlen (m_addresses) + 1;
|
||||
m_addressesLeft--;
|
||||
nsCOMPtr<nsIURI> url = do_QueryInterface(m_runningURL);
|
||||
status = SendData(url, buffer.get());
|
||||
|
||||
|
@ -1355,7 +1351,8 @@ PRInt32 nsSmtpProtocol::SendRecipientResponse()
|
|||
(m_responseCode == 452) ? NS_ERROR_SMTP_TEMP_SIZE_EXCEEDED :
|
||||
((m_responseCode == 552) ? NS_ERROR_SMTP_PERM_SIZE_EXCEEDED_2 :
|
||||
NS_ERROR_SENDING_RCPT_COMMAND),
|
||||
m_responseText.get());
|
||||
m_responseText.get(),
|
||||
m_addresses);
|
||||
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to explain SMTP error");
|
||||
|
||||
|
@ -1363,7 +1360,11 @@ PRInt32 nsSmtpProtocol::SendRecipientResponse()
|
|||
return(NS_ERROR_SENDING_RCPT_COMMAND);
|
||||
}
|
||||
|
||||
if(m_addressesLeft > 0)
|
||||
/* take the address we sent off the list (move the pointer to just
|
||||
past the terminating null.)
|
||||
*/
|
||||
m_addresses += PL_strlen (m_addresses) + 1;
|
||||
if(--m_addressesLeft > 0)
|
||||
{
|
||||
/* more senders to RCPT to
|
||||
*/
|
||||
|
|
|
@ -82,9 +82,6 @@
|
|||
## @name NS_ERROR_SENDING_FROM_COMMAND
|
||||
12514=An error occurred while sending mail. The mail server responded: %s. Please verify that your email address is correct in your Mail preferences and try again.
|
||||
|
||||
## @name NS_ERROR_SENDING_RCPT_COMMAND
|
||||
12515=An error occurred while sending mail. The mail server responded: %s. Please check the message recipients and try again.
|
||||
|
||||
## @name NS_ERROR_SENDING_DATA_COMMAND
|
||||
12516=An (SMTP) error occurred while sending mail. The server responded: %s.
|
||||
|
||||
|
@ -253,6 +250,9 @@ sendAnyway=Send anyway
|
|||
## @name NS_ERROR_COULD_NOT_LOGIN_TO_SMTP_SERVER_WITH_STARTTLS2
|
||||
12574=An error occurred sending mail: Unable to connect to SMTP server %S via STARTTLS since it doesn't offer STARTTLS in its EHLO response. Please verify that your Mail/News account settings are correct and try again.
|
||||
|
||||
## @name NS_ERROR_SENDING_RCPT_COMMAND
|
||||
12575=An error occurred while sending mail. The mail server responded: %1$s. Please check the message recipient %2$s and try again.
|
||||
|
||||
## Strings use for the save message dialog shown when the user close a message compose window
|
||||
saveDlogTitle=Save Message
|
||||
saveDlogMessage=Message has not been sent. Do you want to save the message in the Drafts folder?
|
||||
|
|
Загрузка…
Ссылка в новой задаче