Skip to content

Commit

Permalink
Don't use the original message To for a reply To field
Browse files Browse the repository at this point in the history
Fixes djcb#2535
  • Loading branch information
Chris00 committed Aug 16, 2023
1 parent 6168d77 commit 3d0120d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mu4e/mu4e-draft.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d0120d

Please sign in to comment.