Warning: this module is unmaintained.
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
MIT