summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-29 16:35:37 +0100
committerAnton Khirnov <anton@khirnov.net>2021-11-29 16:35:37 +0100
commitdcd75a8bdb9b723a77713bc722f63e750019d445 (patch)
tree5b5c0568e615cc64b8f852fde5e51019bbd72a2f
parent9398560306f5609bcf1d3fdda6511cdb3b67d3f3 (diff)
mail/reply: fix deleting address from AddrList
-rw-r--r--alot/mail/reply.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/mail/reply.py b/alot/mail/reply.py
index 43381602..9e171cd8 100644
--- a/alot/mail/reply.py
+++ b/alot/mail/reply.py
@@ -114,7 +114,7 @@ class AddrList:
def __delitem__(self, addr):
addr_spec = self._addr_to_addr_spec(addr)
- idx = self._addrs.index(addr_spec)
+ idx = self._addrs.index(self._addr_specs[addr_spec])
del self._addrs[idx]
del self._addr_specs[addr_spec]