1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-26 07:29:17 +02:00

* 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))
(while (re-search-forward "<[^ <]+@[^ <]+>" nil t)
(push (match-string 0) refs))
(setq forwarded-from (car-safe (last refs)))))))
;; the last will the first
(setq forwarded-from (first refs))))))
;; remove the <>
(when (and in-reply-to (string-match "<\\(.*\\)>" in-reply-to))
(mu4e-proc-flag (match-string 1 in-reply-to) "+R"))