* mu4e-send.el: use the _last_ reference to determine the 'parent' message

This commit is contained in:
djcb
2012-03-13 08:20:27 +02:00
parent 28c6f2d8d7
commit 4c43ebdf2e

View File

@ -410,7 +410,8 @@ This is meant to be called from message mode's
(let ((refs)) (let ((refs))
(while (re-search-forward "<[^ <]+@[^ <]+>" nil t) (while (re-search-forward "<[^ <]+@[^ <]+>" nil t)
(push (match-string 0) refs)) (push (match-string 0) refs))
(setq forwarded-from (car-safe (last refs))))))) ;; the last will the first
(setq forwarded-from (first refs))))))
;; remove the <> ;; remove the <>
(when (and in-reply-to (string-match "<\\(.*\\)>" in-reply-to)) (when (and in-reply-to (string-match "<\\(.*\\)>" in-reply-to))
(mu4e-proc-flag (match-string 1 in-reply-to) "+R")) (mu4e-proc-flag (match-string 1 in-reply-to) "+R"))