diff options
-rw-r--r-- | alot/defaults/default.theme | 6 | ||||
-rw-r--r-- | alot/defaults/theme.spec | 2 | ||||
-rw-r--r-- | alot/widgets/search.py | 9 |
3 files changed, 1 insertions, 16 deletions
diff --git a/alot/defaults/default.theme b/alot/defaults/default.theme index 0e3f796d..7abaecc6 100644 --- a/alot/defaults/default.theme +++ b/alot/defaults/default.theme @@ -84,10 +84,6 @@ normal = 'default','','light gray','default','g66','default' focus = 'standout','','yellow','light gray','yellow','g58' width = 'weight', 1 - [[[content]]] - normal = 'default','','light gray','default','dark gray','default' - focus = 'standout','','yellow','light gray','yellow','g58' - width = 'weight', 1 # highlight threads containing unread messages [[threadline-unread]] @@ -104,5 +100,3 @@ normal = 'default,underline','','light blue,bold','default','#68f','default' [[[subject]]] normal = 'default','','light gray,bold','default','g93','default' - [[[content]]] - normal = 'default','','light gray,bold','default','dark gray,bold','default' diff --git a/alot/defaults/theme.spec b/alot/defaults/theme.spec index 352564a4..b03b61d4 100644 --- a/alot/defaults/theme.spec +++ b/alot/defaults/theme.spec @@ -31,7 +31,7 @@ normal = attrtriple focus = attrtriple # list of subwidgets to display. Every element listed must have its - # own subsection below. Valid elements are authors, content, date, + # own subsection below. Valid elements are authors, date, # mailcount, tags, and subject. parts = string_list(default=None) [[[__many__]]] diff --git a/alot/widgets/search.py b/alot/widgets/search.py index 4e612e8c..4036d187 100644 --- a/alot/widgets/search.py +++ b/alot/widgets/search.py @@ -181,14 +181,6 @@ def prepare_subject_string(thread): return thread.subject or ' ' -def prepare_content_string(thread): - msgs = sorted(thread.messages.values(), - key=lambda msg: msg.date, reverse=True) - lastcontent = ' '.join(m.get_body_text() for m in msgs) - lastcontent = lastcontent.replace('^>.*$', '') - return lastcontent - - def prepare_string(partname, thread, maxw): """ extract a content string for part 'partname' from 'thread' of maximal @@ -200,7 +192,6 @@ def prepare_string(partname, thread, maxw): 'date': (prepare_date_string, None), 'authors': (prepare_authors_string, shorten_author_string), 'subject': (prepare_subject_string, None), - 'content': (prepare_content_string, None), } s = ' ' # fallback value |