* mu4e-send.el: fix handling of Cc:'s in reply (when not replying-to-all)

This commit is contained in:
djcb
2012-02-19 11:05:29 +02:00
parent df4f34cce5
commit 1a5eec4a84

View File

@ -129,13 +129,12 @@ is nil this is simply empty, otherwise it is the old CC-list
together with the old TO-list, minus `user-mail-address'. The together with the old TO-list, minus `user-mail-address'. The
result of this function is either nil or a string to be used for result of this function is either nil or a string to be used for
the Cc: field." the Cc: field."
(let ((cc-lst (plist-get msg :cc)) (when reply-all
(to-lst (plist-get msg :to))) (let ((cc-lst
(when reply-all (mu4e-send-recipients-remove ;; remove myself from cc
(setq cc-lst (append cc-lst to-lst))) (append (plist-get msg :cc) (plist-get msg :to))
;; remove myself from cc user-mail-address)))
(setq cc-lst (mu4e-send-recipients-remove cc-lst user-mail-address)) (mu4e-send-recipients-to-string cc-lst))))
(mu4e-send-recipients-to-string cc-lst)))
(defun mu4e-send-from-create () (defun mu4e-send-from-create ()