diff options
author | Mike Kupfer <mkupfer@alum.berkeley.edu> | 2021-11-26 13:59:14 -0800 |
---|---|---|
committer | Mike Kupfer <mkupfer@alum.berkeley.edu> | 2021-11-27 13:41:12 -0800 |
commit | 2a4de5e5e5c3bb1d1022baf2b9a6f8b2acab4aa1 (patch) | |
tree | c2ccd68b6be1389fb7d15369795cac31137b739e /lisp/mh-e | |
parent | b8b2dd17c57b73357cae229e010138fd2352a46f (diff) | |
download | emacs-2a4de5e5e5c3bb1d1022baf2b9a6f8b2acab4aa1.tar.gz emacs-2a4de5e5e5c3bb1d1022baf2b9a6f8b2acab4aa1.tar.bz2 emacs-2a4de5e5e5c3bb1d1022baf2b9a6f8b2acab4aa1.zip |
Fix Subject when forwarding message with 2-line From
* lisp/mh-e/mh-comp.el (mh-forwarded-letter-subject): Collapse
two-line From headers into a single line (SF#266). Based on a
suggestion from Lester Buck (many thanks!).
Diffstat (limited to 'lisp/mh-e')
-rw-r--r-- | lisp/mh-e/mh-comp.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 404b6b3ce75..e44c42e2800 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el @@ -638,6 +638,8 @@ See also `mh-compose-forward-as-mime-flag', (defun mh-forwarded-letter-subject (from subject) "Return a Subject suitable for a forwarded message. Original message has headers FROM and SUBJECT." + ;; Join continued lines. + (setq from (replace-regexp-in-string "\\s *\n\\s +" " " from)) (let ((addr-start (string-search "<" from)) (comment (string-search "(" from))) (cond ((and addr-start (> addr-start 0)) |