Strip reply preamble and signature when mixed with other text
Be more strict when stripping reply headers and signatures
Ignore snip texts
A Go library to parse email threads. Give it a list of emails that are part of the same thread and it'll organize the replies in a tree structure.
This is a port and enhancement of python-emailthreads.
See the documentation.
To quickly find out how the library parses an email thread, you can use:
go run ./cmd/emailthreads-parse <thread.mbox