aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-01-02 08:57:04 +0000
committerRichard M. Stallman1996-01-02 08:57:04 +0000
commit5411544782cf59fe135eff3732952f16e06c5a06 (patch)
treee0e35b581de4035300f3664581c24775c69aaede
parentff58478bbbf193fb27603e7639cdcfb8ec241af3 (diff)
downloademacs-5411544782cf59fe135eff3732952f16e06c5a06.tar.gz
emacs-5411544782cf59fe135eff3732952f16e06c5a06.zip
(sendmail-send-it): Make deletion of empty subject line work reliably.
-rw-r--r--lisp/mail/sendmail.el6
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))