From a1c33d2457789230b7b665fe630198b3177790ac Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 13 May 2021 11:45:51 +0200 Subject: commands/thread:ReplyCommand: stop calling get_email() --- alot/commands/thread.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alot/commands/thread.py b/alot/commands/thread.py index bc41bdc4..be1153aa 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -174,13 +174,14 @@ class ReplyCommand(Command): async def apply(self, ui): message = ui.current_buffer.get_selected_message() - mail = message.get_email() # set body text name, address = message.get_author() timestamp = message.date qf = settings.get_hook('reply_prefix') if qf: + mail = email.message_from_bytes(message.as_bytes(), + policy = email.policy.SMTP) quotestring = qf(name, address, timestamp, message=mail, ui=ui, dbm=ui.dbman) else: -- cgit v1.2.3