summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/commands/envelope.py2
-rw-r--r--alot/message.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 437bed97..3f9326d6 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -62,7 +62,7 @@ class SendCommand(Command):
def apply(self, ui):
currentbuffer = ui.current_buffer # needed to close later
envelope = currentbuffer.envelope
- frm = envelope.get('From', decode=True)
+ frm = envelope.get('From')
sname, saddr = email.Utils.parseaddr(frm)
omit_signature = False
diff --git a/alot/message.py b/alot/message.py
index 1be0e05c..62a6df66 100644
--- a/alot/message.py
+++ b/alot/message.py
@@ -435,11 +435,9 @@ class Envelope(object):
def __delitem__(self, name):
del(self.headers[name])
- def get(self, key, decode=False, fallback=None):
+ def get(self, key, fallback=None):
if key in self.headers:
value = self.headers[key]
- if decode:
- value = decode_header(value)
else:
value = fallback
return value