diff options
| author | Richard M. Stallman | 1996-01-02 08:57:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-02 08:57:04 +0000 |
| commit | 5411544782cf59fe135eff3732952f16e06c5a06 (patch) | |
| tree | e0e35b581de4035300f3664581c24775c69aaede | |
| parent | ff58478bbbf193fb27603e7639cdcfb8ec241af3 (diff) | |
| download | emacs-5411544782cf59fe135eff3732952f16e06c5a06.tar.gz emacs-5411544782cf59fe135eff3732952f16e06c5a06.zip | |
(sendmail-send-it): Make deletion of empty subject line work reliably.
| -rw-r--r-- | lisp/mail/sendmail.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index dc7b848ca73..a5fdc8d5d47 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -532,7 +532,11 @@ the user from the mailer." | |||
| 532 | ;; Don't send out a blank subject line | 532 | ;; Don't send out a blank subject line |
| 533 | (goto-char (point-min)) | 533 | (goto-char (point-min)) |
| 534 | (if (re-search-forward "^Subject:\\([ \t]*\n\\)+\\b" delimline t) | 534 | (if (re-search-forward "^Subject:\\([ \t]*\n\\)+\\b" delimline t) |
| 535 | (replace-match "")) | 535 | (replace-match "") |
| 536 | ;; This one matches a Subject just before the header delimiter. | ||
| 537 | (if (and (re-search-forward "^Subject:\\([ \t]*\n\\)+" delimline t) | ||
| 538 | (= (match-end 0) delimline)) | ||
| 539 | (replace-match ""))) | ||
| 536 | ;; Put the "From:" field in unless for some odd reason | 540 | ;; Put the "From:" field in unless for some odd reason |
| 537 | ;; they put one in themselves. | 541 | ;; they put one in themselves. |
| 538 | (goto-char (point-min)) | 542 | (goto-char (point-min)) |