msg/reply: fix address comparison
Compare self address in lowercase, to avoid self-replying when people put in uppercase versions of the mail. Reported-By: helby on Freenode
This commit is contained in:
parent
78dd043057
commit
37fc4d9423
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
|
|||
}
|
||||
for _, addr := range msg.Envelope.To {
|
||||
address := fmt.Sprintf("%s@%s", addr.Mailbox, addr.Host)
|
||||
if address == us.Address {
|
||||
if strings.ToLower(address) == strings.ToLower(us.Address) {
|
||||
continue
|
||||
}
|
||||
to = append(to, addr.Format())
|
||||
|
|
Loading…
Reference in a new issue