diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/msg/reply.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go index a7768372..dac9f7a6 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -112,6 +112,19 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error { } else { to = msg.Envelope.From } + + if !aerc.Config().Compose.ReplyToSelf { + for i, v := range to { + if v.Address == from.Address { + to = append(to[:i], to[i+1:]...) + break + } + } + if len(to) == 0 { + to = append(msg.Envelope.To) + } + } + recSet.AddList(to) if replyAll { |