diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-07 16:19:42 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-07 16:19:42 +0000 |
commit | d6d915b609cbb09d584548d95b24a7e740288be8 (patch) | |
tree | 8caea3f6650a68693915670ed453206d070b518d /alot | |
parent | 7757de8a44c5baf4bc5ac08edecf4aca4c3e0678 (diff) |
remove unnecessary decode parm to Envelope.get
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 2 | ||||
-rw-r--r-- | alot/message.py | 4 |
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 |