diff options
| author | Sam Steingold | 2007-10-15 14:38:42 +0000 |
|---|---|---|
| committer | Sam Steingold | 2007-10-15 14:38:42 +0000 |
| commit | 78205dab16ac571debda4d869322aca8ccab021b (patch) | |
| tree | 0cc449e9545363554375615a9d9e295311b3b6b9 | |
| parent | 0c2ab389647cb634f96ec28a7f3104b4ca8334d7 (diff) | |
| download | emacs-78205dab16ac571debda4d869322aca8ccab021b.tar.gz emacs-78205dab16ac571debda4d869322aca8ccab021b.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 21 |
2 files changed, 23 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9a495218555..a9d6c2b29a6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-10-15 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * mail/sendmail.el (sendmail-error-reporting-interactive) | ||
| 4 | (sendmail-error-reporting-non-interactive): New variables for | ||
| 5 | sendmail error reporting options to simplify support for imperfect | ||
| 6 | sendmail emulators. | ||
| 7 | (sendmail-send-it): Use them instead of list literals. | ||
| 8 | |||
| 1 | 2007-10-15 Juanma Barranquero <lekktu@gmail.com> | 9 | 2007-10-15 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 10 | ||
| 3 | * help-fns.el: Revert previous change; it creates a | 11 | * help-fns.el: Revert previous change; it creates a |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 2a986a33f72..baf99cfd54a 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -991,6 +991,19 @@ See also the function `select-message-coding-system'.") | |||
| 991 | nil) | 991 | nil) |
| 992 | (t (error "Invalid value for `mail-from-style'"))))) | 992 | (t (error "Invalid value for `mail-from-style'"))))) |
| 993 | 993 | ||
| 994 | ;; Normally you will not need to modify these options unless you are | ||
| 995 | ;; using some non-genuine substitute for sendmail which does not | ||
| 996 | ;; implement each and every option that the original supports. | ||
| 997 | ;; E.g., ssmtp does not support "-odb", so, if your site uses it, | ||
| 998 | ;; you will need to modify `sendmail-error-reporting-non-interactive' | ||
| 999 | ;; in your site-init.el. | ||
| 1000 | (defvar sendmail-error-reporting-interactive | ||
| 1001 | ;; These mean "report errors to terminal" and "deliver interactively" | ||
| 1002 | '("-oep" "-odi")) | ||
| 1003 | (defvar sendmail-error-reporting-non-interactive | ||
| 1004 | ;; These mean "report errors by mail" and "deliver in background". | ||
| 1005 | '("-oem" "-odb")) | ||
| 1006 | |||
| 994 | (defun sendmail-send-it () | 1007 | (defun sendmail-send-it () |
| 995 | "Send the current mail buffer using the Sendmail package. | 1008 | "Send the current mail buffer using the Sendmail package. |
| 996 | This is a suitable value for `send-mail-function'. It sends using the | 1009 | This is a suitable value for `send-mail-function'. It sends using the |
| @@ -1135,12 +1148,8 @@ external program defined by `sendmail-program'." | |||
| 1135 | (and mail-alias-file | 1148 | (and mail-alias-file |
| 1136 | (list (concat "-oA" mail-alias-file))) | 1149 | (list (concat "-oA" mail-alias-file))) |
| 1137 | (if mail-interactive | 1150 | (if mail-interactive |
| 1138 | ;; These mean "report errors to terminal" | 1151 | sendmail-error-reporting-interactive |
| 1139 | ;; and "deliver interactively" | 1152 | sendmail-error-reporting-non-interactive) |
| 1140 | '("-oep" "-odi") | ||
| 1141 | ;; These mean "report errors by mail" | ||
| 1142 | ;; and "deliver in background". | ||
| 1143 | '("-oem" "-odb")) | ||
| 1144 | ;; Get the addresses from the message | 1153 | ;; Get the addresses from the message |
| 1145 | ;; unless this is a resend. | 1154 | ;; unless this is a resend. |
| 1146 | ;; We must not do that for a resend | 1155 | ;; We must not do that for a resend |