Summary | Presentation of sendmail error codes |
Queue | IMP |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | xidus (at) xidus (dot) net |
Created | 05/04/2004 (7745 days ago) |
Due | |
Updated | 06/16/2005 (7337 days ago) |
Assigned | 05/17/2004 (7732 days ago) |
Resolved | 06/16/2005 (7337 days ago) |
Milestone | |
Patch | No |
New Attachment: Compose[1].patch
varying error messages translateable.
New Attachment: Compose.patch
New Attachment: sendmail.php.patch
call in Mail_sendmail to include the error code as a seperate
parameter as well (it's in the raiseError() definition). Then in IMP,
if there's an error code set, you can introduce the translatable
strings. We shouldn't rely on the Mail_sendmail string staying the
same, but the error code should be reliable.
Only downside is it requires changes to both packages, but it degrades
to the current behavior just fine either way.
returns? If it is, I can move this code to imp/lib/Compose.php and
only attempt to parse the error message if $conf['mailer']['type'] ==
'sendmail'.
New Attachment: sendmail.patch
State ⇒ Feedback
error codes and what they mean. Or should the logic be more inside of
IMP?
State ⇒ Accepted
Version ⇒ HEAD
Priority ⇒ 1. Low
Type ⇒ Enhancement
that the mail was sent to NONE of the intended recipients. However,
if the mail was addressed to multiple recipients, it has been
successfully sent to the extant recipients. This easily leads to
users clicking "send" multiple times to try to clear the error,
sending multiple copies to the recipients that DO exist.
Handling in this case, with multiple recipients and one or more
unknown to local sendmail, is very poor. IMP should fail to send the
message completely AND report the unknown addresses (reported by
sendmail on stderr).
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ IMP
Type ⇒ Bug
sendmail are displayed very cryptically. IE: "There was an error
sending your message: sendmail returned error code 67" Sendmail only
returns 6-7 error codes, shown in sendmail(8), and defined in
/usr/include/sysexits.h. Readable messages for these would be useful.
For instance, 67 is EX_NOUSER, which means one of the addressees
didn't exist. The user sending mail would much rather see that than
"error 67"
Thanks...