summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index 6313110e..2c49ed7c 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -5,7 +5,7 @@ import widgets
import settings
import commands
from walker import PipeWalker
-from message import decode_header
+from helper import shorten_author_string
class Buffer(object):
@@ -99,7 +99,8 @@ class EnvelopeBuffer(Buffer):
Buffer.__init__(self, ui, self.body, 'envelope')
def __str__(self):
- return "to: %s" % decode_header(self.mail['To'])
+ to = self.envelope.get('To', fallback='unset')
+ return "to: %s" % shorten_author_string(to, 400)
def get_email(self):
"""returns message represented as :class:`email.Message`"""