hello all
i want to ask to roundcube developers to consider add this feature: show smtp error description when the user send a mail and smtp server returns an error
would be a good idea if the behavior of this feature can be defined by a configuration (main) variable .. the variable may be named:
// Set if the SMTP Error Description should be displayed $rcmail_config['show_smtp_error_description'] = true|false;
// Show the SMTP Error Description via 'alert()' function? $rcmail_config['show_smtp_error_description_alert'] = true|false;
i ask this because i manage a smtp server that returns some errors to users due to some conditions but roundcube doesn't show the error description and i don't know how to modify the code in order to achieve this
well, that's all
List info: http://lists.roundcube.net/dev/
On Dec 12, 2009, at 1:48 AM, Leinier Cruz Salfran wrote:
hello all
i want to ask to roundcube developers to consider add this feature: show smtp error description when the user send a mail and smtp server returns an error
+1. It's better to make the error message stay for a longer time so that user can copy it. :)
I would prefer a hook in /program/mail/func.inc#L1395:
if ($sent) { $RCMAIL->plugins->exec_hook('message_sent', array('headers' => $headers, 'body' => $msg_body));
// remove MDN headers after sending
unset($headers['Return-Receipt-To'],
$headers['Disposition-Notification-To']);
if ($CONFIG['smtp_log']) {
write_log('sendmail', sprintf("User %s [%s]; Message for %s; %s",
$RCMAIL->user->get_username(),
$_SERVER['REMOTE_ADDR'],
$mailto,
!empty($smtp_response) ? join('; ', $smtp_response) : ''));
}
} else{ $RCMAIL->plugins->exec_hook('sending_failed', array('smtp_error' => $smtp_error, 'smtp_response' => $smtp_response)); }
If the hook was there, the requested feature could be done by a plugin very easily.
Regards, R.
----- Original Message ----- From: "Leinier Cruz Salfran" salfrancl@ipigto.rimed.cu To: Dev@lists.roundcube.net Sent: Friday, December 11, 2009 6:48 PM Subject: [RCD] whishlist: show smtp error description
hello all
i want to ask to roundcube developers to consider add this feature: show smtp error description when the user send a mail and smtp server returns an error
would be a good idea if the behavior of this feature can be defined by a configuration (main) variable .. the variable may be named:
// Set if the SMTP Error Description should be displayed $rcmail_config['show_smtp_error_description'] = true|false;
// Show the SMTP Error Description via 'alert()' function? $rcmail_config['show_smtp_error_description_alert'] = true|false;
i ask this because i manage a smtp server that returns some errors to users due to some conditions but roundcube doesn't show the error description and i don't know how to modify the code in order to achieve this
well, that's all
List info: http://lists.roundcube.net/dev/
List info: http://lists.roundcube.net/dev/
On Fri, 11 Dec 2009 12:48:33 -0500, Leinier Cruz Salfran salfrancl@ipigto.rimed.cu wrote:
i want to ask to roundcube developers to consider add this feature: show smtp error description when the user send a mail and smtp server returns an error
We've got it. http://trac.roundcube.net/ticket/1485927.