summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-20 15:26:24 +0100
committerAnton Khirnov <anton@khirnov.net>2021-11-20 15:33:49 +0100
commit5e7e681be0dc9164056329d7f7e5e663d6ded90e (patch)
tree80cd57b6f2c1db8afac6fd585a79216e7f6f4fd2
parenta70c1991cae77c80a4643b5bebdc1a849afa163e (diff)
commands/thread: drop useless delete
The 'To' header has not been set on the envelope yet, so trying to delete it is pointless.
-rw-r--r--alot/commands/thread.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 4705a4c7..16f25366 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -265,9 +265,6 @@ class ReplyCommand(Command):
if to is None:
to = message.headers[HDR.TO]
logging.debug('mail list reply to: %s', to)
- # Cleaning the 'To' in this case
- if envelope.get(HDR.TO) is not None:
- envelope.__delitem__(HDR.TO)
# Finally setup the 'To' header
envelope.add(HDR.TO, to)