diff options
| -rw-r--r-- | lisp/mail/sendmail.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 4b18da3524d..587b129cb92 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1168,8 +1168,13 @@ external program defined by `sendmail-program'." | |||
| 1168 | ) | 1168 | ) |
| 1169 | ) | 1169 | ) |
| 1170 | (exit-value (apply 'call-process-region args))) | 1170 | (exit-value (apply 'call-process-region args))) |
| 1171 | (or (null exit-value) (eq 0 exit-value) | 1171 | (cond ((or (null exit-value) (eq 0 exit-value))) |
| 1172 | (error "Sending...failed with exit value %d" exit-value))) | 1172 | ((numberp exit-value) |
| 1173 | (error "Sending...failed with exit value %d" exit-value)) | ||
| 1174 | ((stringp exit-value) | ||
| 1175 | (error "Sending...terminated by signal: %s" exit-value)) | ||
| 1176 | (t | ||
| 1177 | (error "SENDMAIL-SEND-IT -- fall through: %S" exit-value)))) | ||
| 1173 | (or fcc-was-found | 1178 | (or fcc-was-found |
| 1174 | (error "No recipients"))) | 1179 | (error "No recipients"))) |
| 1175 | (if mail-interactive | 1180 | (if mail-interactive |