diff options
| author | Richard M. Stallman | 1994-02-02 00:06:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-02 00:06:43 +0000 |
| commit | 01b5c04d06102bfe55525f3e782522a54853aedc (patch) | |
| tree | 8d3d8c2a0b1c22c59533405cd7aa81d77da297d8 | |
| parent | f28039bb00590ee7798d7397473b571a3f977173 (diff) | |
| download | emacs-01b5c04d06102bfe55525f3e782522a54853aedc.tar.gz emacs-01b5c04d06102bfe55525f3e782522a54853aedc.zip | |
(mail-mailer-swallows-blank-line): New variable.
(sendmail-send-it): Add extra newline if appropriate.
| -rw-r--r-- | lisp/mail/sendmail.el | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 23f1c6f1849..9aaca162cff 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; sendmail.el --- mail sending commands for Emacs. | 1 | ;;; sendmail.el --- mail sending commands for Emacs. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1992, 1993 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 1986, 1992, 1993, 1994 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 6 | ;; Keywords: mail | 6 | ;; Keywords: mail |
| @@ -129,8 +129,17 @@ so you can edit or delete these lines.") | |||
| 129 | ;; Note: could use /usr/ucb/mail instead of sendmail; | 129 | ;; Note: could use /usr/ucb/mail instead of sendmail; |
| 130 | ;; options -t, and -v if not interactive. | 130 | ;; options -t, and -v if not interactive. |
| 131 | (defvar mail-mailer-swallows-blank-line | 131 | (defvar mail-mailer-swallows-blank-line |
| 132 | (if (string-match "sparc-sun-sunos\\(\\'\\|[^5]\\)" system-configuration) | 132 | (if (and (string-match "sparc-sun-sunos\\(\\'\\|[^5]\\)" system-configuration) |
| 133 | '(looking-at " \t") | 133 | (let ((buffer (get-buffer-create " *temp*"))) |
| 134 | (unwind-protect | ||
| 135 | (save-excursion | ||
| 136 | (set-buffer buffer) | ||
| 137 | (insert-file-contents "/etc/sendmail.cf") | ||
| 138 | (goto-char (point-min)) | ||
| 139 | (let ((case-fold-search nil)) | ||
| 140 | (re-search-forward "^OR\>" nil t))) | ||
| 141 | (kill-buffer buffer)))) | ||
| 142 | '(looking-at " \t")) | ||
| 134 | "Set this non-nil if the system's mailer runs the header and body together. | 143 | "Set this non-nil if the system's mailer runs the header and body together. |
| 135 | \(This problem exists on Sunos 4 when sendmail is run in remote mode.) | 144 | \(This problem exists on Sunos 4 when sendmail is run in remote mode.) |
| 136 | The value should be an expression to test whether the problem will | 145 | The value should be an expression to test whether the problem will |