aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/reply.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/reply.go')
-rw-r--r--commands/msg/reply.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 8cca2b17..d4b3be62 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)