summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: