summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2018-11-08 20:30:00 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2018-11-08 20:50:23 +0000
commit03cd0ac391bbd0ae9d01cb085ae9c16665255b17 (patch)
tree35e9396464cae48423729c00faeadc0b0035e923
parentf942fa7a8ed2a87304a9942b559d63cb25aff952 (diff)
don't include quoted lines in msg content summary
-rw-r--r--alot/widgets/search.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/alot/widgets/search.py b/alot/widgets/search.py
index 71469e27..e05dea01 100644
--- a/alot/widgets/search.py
+++ b/alot/widgets/search.py
@@ -186,6 +186,7 @@ def prepare_content_string(thread):
msgs = sorted(thread.get_messages().keys(),
key=lambda msg: msg.get_date(), reverse=True)
lastcontent = ' '.join(m.get_text_content() for m in msgs)
+ lastcontent = lastcontent.replace('^>.*$', '')
return lastcontent