From 186d61f21c72e4399608827d7bcf0c79991f8b7c Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Thu, 20 Aug 2020 09:18:42 +0200 Subject: [PATCH] msg/reply: don't cc the sending address on reply all --- commands/msg/reply.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 8cca2b1..d4b3be6 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -117,8 +117,8 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error { } if replyAll { for _, addr := range msg.Envelope.Cc { - //dedupe stuff already in the to: header, no need to repeat - if isMainRecipient(addr) { + //dedupe stuff from the to/from headers + if isMainRecipient(addr) || addr.Address == from.Address { continue } cc = append(cc, addr)