From 3d0120d02404f9f3afc7d22c946b90213fe5e1f4 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Wed, 16 Aug 2023 23:03:06 +0200 Subject: [PATCH] Don't use the original message `To` for a reply `To` field Fixes https://github.com/djcb/mu/issues/2535 --- mu4e/mu4e-draft.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mu4e/mu4e-draft.el b/mu4e/mu4e-draft.el index 77a9a38e..7ba2950a 100644 --- a/mu4e/mu4e-draft.el +++ b/mu4e/mu4e-draft.el @@ -350,10 +350,8 @@ address is set, use that, otherwise use the From address. Note, whatever was in the To: field before, goes to the Cc:-list (if we're doing a reply-to-all). Special case: if we were the sender of the original, we simple copy the list form the original." - (let* ((reply-to - (append - (plist-get origmsg :to) - (or (plist-get origmsg :reply-to) (plist-get origmsg :from)))) + (let* ((reply-to (or (plist-get origmsg :reply-to) + (plist-get origmsg :from))) (reply-to (cl-delete-duplicates reply-to :test #'mu4e~draft-address-cell-equal))) (if mu4e-compose-dont-reply-to-self