]> git.cworth.org Git - obsolete/notmuch-old/commit
Generate random thread IDs instead of using an arbitrary Message-ID.
authorCarl Worth <cworth@cworth.org>
Fri, 16 Oct 2009 20:33:39 +0000 (13:33 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 16 Oct 2009 20:33:39 +0000 (13:33 -0700)
commit387a28281c8b8c8025e976d610cf0dae0f196894
tree78c4e09dfee40a22f705d2e3c140998146447ec6
parent5fbdbeb333b4fb8293092e8cb9f5b19da3e53ed5
Generate random thread IDs instead of using an arbitrary Message-ID.

Previously, we used as the thread-id the message-id of the first
message in the thread that we happened to find. In fact, this is a
totally arbitrary identifier, so it might as well be random. And an
advantage of actually using a random identifier is that we now have
fixed-length thead identifiers, (and the way is open to even allow
abbreviated identifiers like git does---though we're less likely to
show these identifiers to actual users).
notmuch-index-message.cc