diff options
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index d1830b5c..437bed97 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -10,7 +10,6 @@ from alot import buffers from alot.commands import Command, registerCommand from alot import settings from alot import helper -from alot.message import decode_header from alot.commands import globals from alot.helper import string_decode @@ -52,8 +51,7 @@ class RefineCommand(Command): self.key = key def apply(self, ui): - mail = ui.current_buffer.get_email() - value = decode_header(mail.get(self.key, '')) + value = ui.current_buffer.envelope.get(self.key, '') cmdstring = 'set %s %s' % (self.key, value) ui.apply_command(globals.PromptCommand(cmdstring)) @@ -168,7 +166,7 @@ class EditCommand(Command): # decode header headertext = u'' for key in edit_headers: - value = decode_header(self.envelope.headers.get(key, '')) + value = self.envelope.headers.get(key, '') headertext += '%s: %s\n' % (key, value) bodytext = self.envelope.body |