diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-10-07 08:43:07 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-10-07 08:43:07 +0000 |
| commit | 63cd762cda61fd1efb95e0fce88d3df116b22a17 (patch) | |
| tree | c1ac0e89471be27249274d24ba5edccd9382de38 /roundcubemail/program | |
| parent | 291f893df68c3fbf5388c71dcc08bf973480e235 (diff) | |
- Ignore DSN request when it isn't supported by SMTP server (#1487800)
git-svn-id: https://svn.roundcube.net/trunk@5319 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_smtp.php | 10 | ||||
| -rw-r--r-- | roundcubemail/program/localization/en_US/messages.inc | 1 | ||||
| -rw-r--r-- | roundcubemail/program/localization/pl_PL/messages.inc | 1 |
3 files changed, 3 insertions, 9 deletions
diff --git a/roundcubemail/program/include/rcube_smtp.php b/roundcubemail/program/include/rcube_smtp.php index 73c30d227..5c2dd92d2 100644 --- a/roundcubemail/program/include/rcube_smtp.php +++ b/roundcubemail/program/include/rcube_smtp.php @@ -214,14 +214,10 @@ class rcube_smtp if ($opts['dsn']) { $exts = $this->conn->getServiceExtensions(); - if (!isset($exts['DSN'])) { - $this->error = array('label' => 'smtpdsnerror'); - $this->response[] = "DSN not supported"; - return false; + if (isset($exts['DSN'])) { + $from_params = 'RET=HDRS'; + $recipient_params = 'NOTIFY=SUCCESS,FAILURE'; } - - $from_params = 'RET=HDRS'; - $recipient_params = 'NOTIFY=SUCCESS,FAILURE'; } // RFC2298.3: remove envelope sender address diff --git a/roundcubemail/program/localization/en_US/messages.inc b/roundcubemail/program/localization/en_US/messages.inc index 047349f8b..e3d914d7f 100644 --- a/roundcubemail/program/localization/en_US/messages.inc +++ b/roundcubemail/program/localization/en_US/messages.inc @@ -128,7 +128,6 @@ $messages['smtpautherror'] = 'SMTP Error ($code): Authentication failed.'; $messages['smtpfromerror'] = 'SMTP Error ($code): Failed to set sender "$from" ($msg).'; $messages['smtptoerror'] = 'SMTP Error ($code): Failed to add recipient "$to" ($msg).'; $messages['smtprecipientserror'] = 'SMTP Error: Unable to parse recipients list.'; -$messages['smtpdsnerror'] = 'SMTP Error: No support for Delivery Status Notifications.'; $messages['smtperror'] = 'SMTP Error: $msg'; $messages['emailformaterror'] = 'Invalid e-mail address: $email'; $messages['toomanyrecipients'] = 'Too many recipients. Reduce the number of recipients to $max.'; diff --git a/roundcubemail/program/localization/pl_PL/messages.inc b/roundcubemail/program/localization/pl_PL/messages.inc index 784db2bad..8d1e1eddc 100644 --- a/roundcubemail/program/localization/pl_PL/messages.inc +++ b/roundcubemail/program/localization/pl_PL/messages.inc @@ -117,7 +117,6 @@ $messages['smtpautherror'] = 'Błąd SMTP ($code): Uwierzytelnianie nie powiodł $messages['smtpfromerror'] = 'Błąd SMTP ($code): Nie można ustawić nadawcy "$from" ($msg).'; $messages['smtptoerror'] = 'Błąd SMTP ($code): Nie można dodać odbiorcy "$to" ($msg).'; $messages['smtprecipientserror'] = 'Błąd SMTP: Parsowanie listy odbiorców nie powiodło się.'; -$messages['smtpdsnerror'] = 'Błąd SMTP: Statusy dostarczenia (DSN) nie są obsługiwane przez serwer.'; $messages['smtperror'] = 'Błąd SMTP: $msg'; $messages['emailformaterror'] = 'Błędny adres e-mail: $email'; $messages['toomanyrecipients'] = 'Zbyt wielu odbiorców. Zmniejsz ich liczbę do $max.'; |
