diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-06 17:08:00 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-06 17:11:05 +0100 |
commit | 48dac1d9089ce2a36c55dc4768b24293d1257a37 (patch) | |
tree | cf4e0c5751da8e7689269ea88b180b4dee3c3002 /alot/widgets/search.py | |
parent | 72ed7d40ac68d7e91f41e94fbcf6cb7a3e28433a (diff) |
db: rewrite the API for representing message trees
It should be cleaner and easier to use, and eventually replace the
custom tree walker in the thread display buffer.
Diffstat (limited to 'alot/widgets/search.py')
-rw-r--r-- | alot/widgets/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/search.py b/alot/widgets/search.py index a4d22e82..4e612e8c 100644 --- a/alot/widgets/search.py +++ b/alot/widgets/search.py @@ -182,7 +182,7 @@ def prepare_subject_string(thread): def prepare_content_string(thread): - msgs = sorted(thread.get_messages().keys(), + 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('^>.*$', '') |