<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <font size="4">Hi Notmuch team, Here is a bug report. Thanks, --Martin

## Actual behavior

Notmuch indexes all messages including the replied content.
</font><font size="4">
This is a problem because when one searches for a message with content, we get all emails replying to it.

</font><font size="4">m1 with "foobar"
-> m2 </font><font size="4">with "> foobar"</font>
<font size="4">-> m3 </font><font size="4">with ">> foobar"</font>
<font size="4">
search("foobar") = = [m1, m2, m3]

In the case of dozens of messages in a thread, one does not know which one to open.

</font><font size="4">## Expected behavior

</font><font size="4">Notmuch indexes messages after having stripped the original.
</font><font size="4">
</font><font size="4">search("foobar") = = [m1] </font><font size="4">

</font><font size="4">## Notes

There are different libraries for stripping the replied message. For example

Ruby: https://github.com/github/email_reply_parser
Python: https://github.com/zapier/email-reply-parser
Python: https://github.com/mailgun/talon
Python https://github.com/lawrencepit/email_reply_parser
Python https://github.com/alfonsrv/mailparser-reply
Python https://github.com/closeio/quotequail/
JavaScript: https://github.com/turt2live/node-email-reply-parser
Java: https://github.com/Driftt/EmailReplyParser
PHP: https://github.com/willdurand/EmailReplyParser
Golang https://github.com/web-ridge/email-reply-parser




</font>

<font size="4">

</font> </body> </html>