]> git.eshelyaron.com Git - emacs.git/commitdiff
Tobias C. Rittweiler <tcr at freebits.de> (tiny change)
authorGlenn Morris <rgm@gnu.org>
Thu, 26 Feb 2009 03:53:15 +0000 (03:53 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 26 Feb 2009 03:53:15 +0000 (03:53 +0000)
(sendmail-send-it): `call-process-region' can return a string.  (Bug#2428)

lisp/mail/sendmail.el

index 4b18da3524d6b2c00786bd40b5fdaabb60bba96b..587b129cb92f6d04b347b3680ba8c7871bef6e82 100644 (file)
@@ -1168,8 +1168,13 @@ external program defined by `sendmail-program'."
                              )
                      )
                     (exit-value (apply 'call-process-region args)))
-               (or (null exit-value) (eq 0 exit-value)
-                   (error "Sending...failed with exit value %d" exit-value)))
+               (cond ((or (null exit-value) (eq 0 exit-value)))
+                     ((numberp exit-value)
+                      (error "Sending...failed with exit value %d" exit-value))
+                     ((stringp exit-value)
+                      (error "Sending...terminated by signal: %s" exit-value))
+                     (t
+                      (error "SENDMAIL-SEND-IT -- fall through: %S" exit-value))))
            (or fcc-was-found
                (error "No recipients")))
          (if mail-interactive