Coder Social home page Coder Social logo

Comments (5)

andreis avatar andreis commented on August 17, 2024

Email threading is not easy, but needs to be dealt with

http://www.jwz.org/doc/threading.html

from api.

mlooz avatar mlooz commented on August 17, 2024

I strongly recommend not using the algorithm as described in your link.
In step 5, Jamie Zawinski groups emails without reference headers by subject, which would again cause lavab/web#552 and #129.
He complains that Netscape 4.0 removed this step, which was exactly the right thing to do.

An alternative suggestion:
If you use the algorithm, remove step 5.
Use a disjoint-set data structure to group together everything which references each other, then sort by references order, by date or by incoming server time stamp.
The time stamp for sorting the threads in the inbox could be the latest time an email in it was sent.

Clients which have their time messed up and send emails on 1.1.1970 would have their emails sorted to the end of the inbox, where they are likely never seen by the user. One could protect against this by using the incoming server time stamp instead.

from api.

pzduniak avatar pzduniak commented on August 17, 2024

I implemented my personal adaptation of that algorithm, I only need to tune it a little bit, as I accidentally introduced some bugs back then.

from api.

mlooz avatar mlooz commented on August 17, 2024

You mean the one in https://github.com/lavab/mailer/blob/master/handler/handler.go?

from api.

pzduniak avatar pzduniak commented on August 17, 2024

Fixed in b0bcf39

@mlooz I think that for now it's good enough - mailer doesn't use the "Date" field anyways, which might cause issues. We'll bring it up later, when we'll be less loaded.

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.