diff options
| author | Glenn Morris | 2009-02-26 03:53:15 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-26 03:53:15 +0000 |
| commit | 0d0ff7bc4f697a2f7e2e6e83b06a9429239d9bca (patch) | |
| tree | 3cbe8ed545ecf27be4c31b69727cb82b66d527a9 | |
| parent | a1e32f891026d79093ce4a09b43c1f3f1a8e3e79 (diff) | |
| download | emacs-0d0ff7bc4f697a2f7e2e6e83b06a9429239d9bca.tar.gz emacs-0d0ff7bc4f697a2f7e2e6e83b06a9429239d9bca.zip | |
Tobias C. Rittweiler <tcr at freebits.de> (tiny change)
(sendmail-send-it): `call-process-region' can return a string. (Bug#2428)
| -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 |