diff options
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('^>.*$', '') |