]> git.eshelyaron.com Git - emacs.git/commitdiff
(sendmail-error-reporting-interactive)
authorSam Steingold <sds@gnu.org>
Mon, 15 Oct 2007 14:38:42 +0000 (14:38 +0000)
committerSam Steingold <sds@gnu.org>
Mon, 15 Oct 2007 14:38:42 +0000 (14:38 +0000)
(sendmail-error-reporting-non-interactive): New variables for sendmail
error reporting options to simplify support for imperfect sendmail emulators.
(sendmail-send-it): Use them instead of list literals.

lisp/ChangeLog
lisp/mail/sendmail.el

index 9a49521855564c72f6261accfa29a6c40acfb811..a9d6c2b29a6fbe2c34f081b732baf11fb2d9a231 100644 (file)
@@ -1,3 +1,11 @@
+2007-10-15  Sam Steingold  <sds@gnu.org>
+
+       * mail/sendmail.el (sendmail-error-reporting-interactive)
+       (sendmail-error-reporting-non-interactive): New variables for
+       sendmail error reporting options to simplify support for imperfect
+       sendmail emulators.
+       (sendmail-send-it): Use them instead of list literals.
+
 2007-10-15  Juanma Barranquero  <lekktu@gmail.com>
 
        * help-fns.el: Revert previous change; it creates a
index 2a986a33f72319e8db2e5dd45ca71c87bb73a5aa..baf99cfd54a610966c26c57c608333ffdbcad0de 100644 (file)
@@ -991,6 +991,19 @@ See also the function `select-message-coding-system'.")
           nil)
          (t (error "Invalid value for `mail-from-style'")))))
 
+;; Normally you will not need to modify these options unless you are
+;; using some non-genuine substitute for sendmail which does not
+;; implement each and every option that the original supports.
+;; E.g., ssmtp does not support "-odb", so, if your site uses it,
+;; you will need to modify `sendmail-error-reporting-non-interactive'
+;; in your site-init.el.
+(defvar sendmail-error-reporting-interactive
+  ;; These mean "report errors to terminal" and "deliver interactively"
+  '("-oep" "-odi"))
+(defvar sendmail-error-reporting-non-interactive
+  ;; These mean "report errors by mail" and "deliver in background".
+  '("-oem" "-odb"))
+
 (defun sendmail-send-it ()
   "Send the current mail buffer using the Sendmail package.
 This is a suitable value for `send-mail-function'.  It sends using the
@@ -1135,12 +1148,8 @@ external program defined by `sendmail-program'."
                              (and mail-alias-file
                                   (list (concat "-oA" mail-alias-file)))
                              (if mail-interactive
-                                 ;; These mean "report errors to terminal"
-                                 ;; and "deliver interactively"
-                                 '("-oep" "-odi")
-                               ;; These mean "report errors by mail"
-                               ;; and "deliver in background".
-                               '("-oem" "-odb"))
+                                  sendmail-error-reporting-interactive
+                                  sendmail-error-reporting-non-interactive)
                              ;; Get the addresses from the message
                              ;; unless this is a resend.
                              ;; We must not do that for a resend