mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
SMTP errors for client side (labs.smtp_show_server_errors)
This commit is contained in:
parent
9334187954
commit
2c1087b987
11 changed files with 88 additions and 43 deletions
|
|
@ -330,6 +330,7 @@ Enums.Notification = {
|
|||
'AccountAlreadyExists': 801,
|
||||
|
||||
'MailServerError': 901,
|
||||
'ClientViewError': 902,
|
||||
'UnknownNotification': 999,
|
||||
'UnknownError': 999
|
||||
};
|
||||
|
|
|
|||
|
|
@ -539,11 +539,17 @@ Utils.log = function (sDesc)
|
|||
|
||||
/**
|
||||
* @param {number} iCode
|
||||
* @param {ыекштп=} mMessage = ''
|
||||
* @return {string}
|
||||
*/
|
||||
Utils.getNotification = function (iCode)
|
||||
Utils.getNotification = function (iCode, mMessage)
|
||||
{
|
||||
iCode = Utils.pInt(iCode);
|
||||
if (Enums.Notification.ClientViewError === iCode && mMessage)
|
||||
{
|
||||
return mMessage;
|
||||
}
|
||||
|
||||
return Utils.isUnd(NotificationI18N[iCode]) ? '' : NotificationI18N[iCode];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue