~sircmpwn/aerc

186d61f21c72e4399608827d7bcf0c79991f8b7c — Reto Brunner 2 months ago 6a1c0f6
msg/reply: don't cc the sending address on reply all
1 files changed, 2 insertions(+), 2 deletions(-)

M commands/msg/reply.go
M commands/msg/reply.go => commands/msg/reply.go +2 -2
@@ 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)