msg/reply: don't cc the sending address on reply all

This commit is contained in:
Reto Brunner 2020-08-20 09:18:42 +02:00
parent 6a1c0f60af
commit 186d61f21c
1 changed files with 2 additions and 2 deletions

View File

@ -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)