From 99c3d92677accaf23d67dabafbdabf726aaf1815 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 10 Aug 1994 07:02:35 +0000 Subject: [PATCH] (rmail-forward): Anchor `mail-header-separator' on both sides to match whole line, not just initial substring. --- lisp/mail/rmail.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 79649a935b6..cb2c36adc03 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -2009,7 +2009,7 @@ see the documentation of `rmail-resend'." ;; Insert after header separator--before signature if any. (goto-char (point-min)) (search-forward-regexp - (concat "^" (regexp-quote mail-header-separator))) + (concat "^" (regexp-quote mail-header-separator) "$")) (forward-line 1) (insert-buffer forward-buffer)))))) -- 2.39.5