* 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
1 changed files with 2 additions and 1 deletions

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"))