Email threading package?

333 views
Skip to first unread message

Ask Bjørn Hansen

unread,
Jul 19, 2015, 8:44:32 PM7/19/15
to golan...@googlegroups.com
Hi,

Has anyone made an (open source) package to thread emails -- ideally a variation of http://www.jwz.org/doc/threading.html ? (I wanted to upgrade an old NNTP -> web gateway to Go to make it easier to maintain and it seems like nobody has done this part yet as open source -- or really much email parsing stuff).

Searching the internet for "golang email thread" (and variations) brings a lot of results referencing other email threads. :-)


Ask

Tuhin Nair

unread,
Aug 6, 2021, 6:41:46 PM8/6/21
to golang-nuts
Hey, this is a long shot but any chance you found a Go implementation for the JWZ algorithm?

Sebastien Binet

unread,
Aug 7, 2021, 1:40:15 AM8/7/21
to Tuhin Nair, golang-nuts
There's that:

https://git.sr.ht/~emersion/go-emailthreads

(Quickly scanning the sources, it seems it "just" performs a topological sort, though)

hth,
-s

Aug 7, 2021 00:41:41 Tuhin Nair <tuhinn...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/89dddc34-3bdf-4cc7-8503-3d43a36ab771n%40googlegroups.com.

Jim Idle

unread,
Aug 10, 2021, 3:31:34 AM8/10/21
to Sebastien Binet, Tuhin Nair, golang-nuts
Hi,

I was going to need to write this anyway, so I took today to write it and the company decided we can open source it. I have literally just pushed it to github, so please report any problems if you try it out. I have not proofread and checked the documentation yet, so I have made it 0.9.0 for the next day or so, after which it will be released. I hope this helps:

https://github.com/gatherstars-com/jwz

I have tested it on hundreds of thousands of emails using the enmime email parsing package to generate the envelopes - this is a very good package by the way if you need a parser.

Cheers,

Jim


Reply all
Reply to author
Forward
0 new messages