exit when mail-interactive is nil.
(require 'mail-utils)
(let ((errbuf (if mail-interactive
(generate-new-buffer " sendmail errors")
- nil))
+ 0))
(tembuf (generate-new-buffer " sendmail temp"))
(case-fold-search nil)
resend-to-addresses
(or resend-to-addresses
'("-t"))))
(exit-value (apply 'call-process-region args)))
- (or (zerop exit-value)
+ (or (null exit-value) (zerop exit-value)
(error "Sending...failed with exit value %d" exit-value)))
(or fcc-was-found
(error "No recipients")))