From 5313d5f1efbb3088851ac25bb6057b6c0a9eba4e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 25 Apr 1995 03:35:00 +0000 Subject: [PATCH] (mail-position-on-field): Use $, not \n, in regexp. --- lisp/mail/sendmail.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5