From: Richard M. Stallman Date: Tue, 25 Apr 1995 03:35:00 +0000 (+0000) Subject: (mail-position-on-field): Use $, not \n, in regexp. X-Git-Tag: emacs-19.34~4307 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5313d5f1efbb3088851ac25bb6057b6c0a9eba4e;p=emacs.git (mail-position-on-field): Use $, not \n, in regexp. --- diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 15280f84aa9..2ea6d676d53 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -753,7 +753,7 @@ the user from the mailer." (let (end (case-fold-search t)) (goto-char (point-min)) - (re-search-forward (concat "^" (regexp-quote mail-header-separator) "\n")) + (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$")) (setq end (match-beginning 0)) (goto-char (point-min)) (if (re-search-forward (concat "^" (regexp-quote field) ":") end t)