summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-13 11:45:51 +0200
committerAnton Khirnov <anton@khirnov.net>2021-05-13 11:45:51 +0200
commita1c33d2457789230b7b665fe630198b3177790ac (patch)
tree4cd4954a93ff4f91aa9d9ad61d8ea759d87b64e7
parent28fafa0ff9e7967059b4e310d61bf903af4834ff (diff)
commands/thread:ReplyCommand: stop calling get_email()
-rw-r--r--alot/commands/thread.py3
1 files changed, 2 insertions, 1 deletions
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: