From 5e7e681be0dc9164056329d7f7e5e663d6ded90e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 20 Nov 2021 15:26:24 +0100 Subject: commands/thread: drop useless delete The 'To' header has not been set on the envelope yet, so trying to delete it is pointless. --- alot/commands/thread.py | 3 --- 1 file changed, 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) -- cgit v1.2.3