summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-12-06 21:00:18 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2011-12-06 21:00:18 +0000
commit9a26e91d4731b40d75842ad979bfd93934a32419 (patch)
treef2c239150d6a5523e3b16784d3ee4ec5b21b4cc6 /alot/buffers.py
parentf1c722b157033ec5e09efefcc2da3dd990c542f7 (diff)
EnvelopeBuffer statusline love
use unencoded recipient string from envelope for EnvelopeBuffers statusline and shorten it using helper.shorten_authors_string.
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 71e07084..b2c9c077 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):
@@ -86,7 +86,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):
return self.mail