unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Missing messages breaking threads
@ 2009-12-18 19:02 James Westby
  2009-12-18 19:41 ` Carl Worth
  0 siblings, 1 reply; 26+ messages in thread
From: James Westby @ 2009-12-18 19:02 UTC (permalink / raw)
  To: notmuch

Hi,

I like the architecture of notmuch, and have just switched
to using it as my primary client, so thanks.

I however have discovered one issue that is a pain.

I use a bugtracker a lot which has workflows that mean that
you don't always get teh initial messages from a bug.

To put it in more common terms, imagine this:

  * Alice sends a mail to a large group of your friends, but
    not you.
  * Each of these friends replies, and puts you in Cc for the
    reply.

This will mean that you get several messages that all have
References and In-Reply-To set to ids that aren't known to
notmuch.

This means that it doesn't thread them, and so they aren't
grouped in the UI. This becomes painful when you are dealing
with several bugs like this. It's almost like being back in
the days of a message oriented client, and we know that's
not the way to do it.

Therefore I'd like to fix this. The obvious way is to
introduce documents in to the db for each id we see, and
threading should then naturally work better.

The only issue I see with doing this is with mail delays.
Once we do this we will sometimes receive a message that
already has a dummy document. What happens currently with
message-id collisions?

Therefore I would propose this:

  * When doing a thread resolution and we have ids that
    we don't know, add a document to the db that is
    something like

    {id: <message-id>
     thread: <synthesised thread-id>
     dummy: True
     content: "Messages missing"
    }

  * When we get a message-id conflict check for dummy:True
    and replace the document if it is there.

How does this sound?

There could be an issue with synthesising too many threads
and then ending up having to try and put a message in two
threads? I see there is code for merging threads, would that
handle this?

Thanks,

James

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2010-04-15  0:39 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18 19:02 Missing messages breaking threads James Westby
2009-12-18 19:41 ` Carl Worth
2009-12-18 19:53   ` James Westby
2009-12-18 20:52     ` Carl Worth
2009-12-18 21:24       ` James Westby
2009-12-22 22:48       ` Olly Betts
2009-12-23  0:05         ` Carl Worth
2010-03-13 21:27           ` [PATCH] Store thread ids for messages that we haven't seen yet James Westby
2010-04-13 15:20             ` Carl Worth
2010-04-13 15:36               ` James Westby
2010-04-15  0:39                 ` Carl Worth
2009-12-18 21:21     ` [PATCH] Store the size of the file for each message James Westby
2009-12-18 22:29       ` Carl Worth
2009-12-19  0:08         ` James Westby
2009-12-19  0:57           ` Carl Worth
2009-12-19  1:35             ` James Westby
2009-12-19  5:24               ` Carl Worth
2009-12-19  8:02                 ` Marten Veldthuis
2009-12-19 17:17                   ` Carl Worth
2009-12-19 13:12                 ` [PATCH] Add ENVIRONMENT VARIABLES section to the man page James Westby
2010-02-23 19:25                   ` Carl Worth
2009-12-19  0:11         ` [PATCH v2] Store the size of the file for each message James Westby
2009-12-19  1:29         ` [PATCH] Reindex larger files that duplicate ids we have James Westby
2009-12-21 18:33           ` Carl Worth
2009-12-20 20:27         ` [PATCH] Store documents for message-ids we haven't seen James Westby
2009-12-21 18:43           ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).