From: kink Date: Mon, 6 Jan 2003 16:17:09 +0000 (+0000) Subject: Make use of the more detailed error reporting provided by the updated X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=00ac2f425ef3a26fdaef567e372d9075556e05bd Make use of the more detailed error reporting provided by the updated deliver class git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4389 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index 6b604132..33332825 100644 --- a/src/compose.php +++ b/src/compose.php @@ -1394,7 +1394,9 @@ function deliverMessage($composeMessage, $draft=false) { $succes = $deliver->finalizeStream($stream); } if (!$succes) { - $msg = $deliver->dlv_msg . '
Server replied: '.$deliver->dlv_ret_nr; + $msg = $deliver->dlv_msg . '
' . + _("Server replied: ") . $deliver->dlv_ret_nr . ' '. + $deliver->dlv_server_msg; plain_error_message($msg, $color); } else { unset ($deliver); diff --git a/src/read_body.php b/src/read_body.php index fa386594..289cbcae 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -288,7 +288,9 @@ function SendMDN ( $mailbox, $passed_id, $sender, $message, $imapConnection) { $success = $deliver->finalizeStream($stream); } if (!$success) { - $msg = $deliver->dlv_msg . '
Server replied: '.$deliver->dlv_ret_nr; + $msg = $deliver->dlv_msg . '
' . + _("Server replied: ") . $deliver->dlv_ret_nr . ' '. + $deliver->dlv_server_msg; require_once(SM_PATH . 'functions/display_messages.php'); plain_error_message($msg, $color); } else { @@ -456,7 +458,7 @@ function formatEnvheader($mailbox, $passed_id, $passed_ent_id, $message, echo ''."\n"; echo $s; - do_hook("read_body_header"); + do_hook('read_body_header'); formatToolbar($mailbox, $passed_id, $passed_ent_id, $message, $color); echo ''; echo ''."\n";