]> git.notmuchmail.org Git - notmuch/commit - lib/add-message.cc
lib: change parent strategy to use In-Reply-To if it looks sane
authorDavid Bremner <david@tethera.net>
Thu, 30 Aug 2018 11:29:15 +0000 (08:29 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 6 Sep 2018 11:07:13 +0000 (08:07 -0300)
commit87934c432c4bee9df09f268a3f05933c59c2caf1
tree879593fcb901a83e6850f6a53c796231075ab2fa
parentb31e44c678bf3bfe81bcc5f159e627551f12700f
lib: change parent strategy to use In-Reply-To if it looks sane

As reported by Sean Whitton, there are mailers (in particular the
Debian Bug Tracking System) that have sensible In-Reply-To headers,
but un-useful-for-notmuch References (in particular with the BTS, the
oldest reference is last). I looked at a sample of about 200K
messages, and only about 0.5% these had something other than a single
message-id in In-Reply-To. On this basis, if we see a single
message-id in In-Reply-To, consider that as authoritative.
lib/add-message.cc
test/T510-thread-replies.sh