summaryrefslogtreecommitdiff
path: root/lisp/mail/sendmail.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-05-05 03:55:07 +0000
committerRichard M. Stallman <rms@gnu.org>1996-05-05 03:55:07 +0000
commit458f1d8c4376d29591e1d799650eefdb5f30adff (patch)
treefa40f16b57cf7c96313c33253a5fd1334cd848ea /lisp/mail/sendmail.el
parent12a2eb4986ddbfe8d63b8858e3bdb5d172a19175 (diff)
downloademacs-458f1d8c4376d29591e1d799650eefdb5f30adff.tar.gz
(mail-mode): Line starting with ---- is a separator.
Diffstat (limited to 'lisp/mail/sendmail.el')
-rw-r--r--lisp/mail/sendmail.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index a8185e1f557..da3707f2179 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -327,11 +327,15 @@ C-c C-v mail-sent-via (add a Sent-via field for each To or CC)."
(setq font-lock-defaults '(mail-font-lock-keywords t))
(make-local-variable 'paragraph-separate)
(make-local-variable 'paragraph-start)
+ ;; `-- ' precedes the signature. `-----' appears at the start of the
+ ;; lines that delimit forwarded messages.
+ ;; Lines containing just >= 3 dashes, perhaps after whitespace,
+ ;; are also sometimes used and should be separators.
(setq paragraph-start (concat (regexp-quote mail-header-separator)
- "$\\|[ \t]*[-_][-_][-_]+$\\|-- \\|"
+ "$\\|[ \t]*[-_][-_][-_]+$\\|-- $\\|-----\\|"
paragraph-start))
(setq paragraph-separate (concat (regexp-quote mail-header-separator)
- "$\\|[ \t]*[-_][-_][-_]+$\\|-- \\|"
+ "$\\|[ \t]*[-_][-_][-_]+$\\|-- $\\|-----\\|"
paragraph-separate))
(run-hooks 'text-mode-hook 'mail-mode-hook))