From 0a8b91384af2a4ba3f7498ab8858f83a0815e5c6 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 26 May 2014 16:05:55 +0200 Subject: [PATCH] [PATCH 0/2] Improve message threading --- 50/28a2cb642454e2a417246f629a19473446915c | 81 +++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 50/28a2cb642454e2a417246f629a19473446915c diff --git a/50/28a2cb642454e2a417246f629a19473446915c b/50/28a2cb642454e2a417246f629a19473446915c new file mode 100644 index 000000000..80a54bd8f --- /dev/null +++ b/50/28a2cb642454e2a417246f629a19473446915c @@ -0,0 +1,81 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 11659431FC2 + for ; Mon, 26 May 2014 07:06:18 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 9pbL4f9fGTvR for ; + Mon, 26 May 2014 07:06:10 -0700 (PDT) +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by olra.theworths.org (Postfix) with ESMTP id 8D7B9431FBD + for ; Mon, 26 May 2014 07:06:10 -0700 (PDT) +Received: from localhost (unknown [192.168.200.7]) + by max.feld.cvut.cz (Postfix) with ESMTP id 6EB8F19F362F + for ; Mon, 26 May 2014 16:06:06 +0200 (CEST) +X-Virus-Scanned: IMAP STYX AMAVIS +Received: from max.feld.cvut.cz ([192.168.200.1]) + by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, + port 10044) with ESMTP id fs5nM68-toSY for ; + Mon, 26 May 2014 16:06:01 +0200 (CEST) +Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) + by max.feld.cvut.cz (Postfix) with ESMTP id F097F19F3636 + for ; Mon, 26 May 2014 16:06:01 +0200 (CEST) +Received: from wsh by steelpick.2x.cz with local (Exim 4.82) + (envelope-from ) + id 1WovXM-0008S5-0O; Mon, 26 May 2014 16:06:00 +0200 +From: Michal Sojka +To: notmuch@notmuchmail.org +Subject: [PATCH 0/2] Improve message threading +Date: Mon, 26 May 2014 16:05:55 +0200 +Message-Id: <1401113157-32454-1-git-send-email-sojkam1@fel.cvut.cz> +X-Mailer: git-send-email 2.0.0.rc2 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 26 May 2014 14:06:18 -0000 + +Hi all, + +I noticed that in certain situations notmuch does not reconstruct +thread structure correctly. The fix was quite trivial - see the +patches. + +The patch fixes my problem, however, as I learnt from the thread +around id:87oazwjq1e.fsf@yoom.home.cworth.org, there are more problems +in this code. I think that my problem is orthogonal to what was +discussed there. + +The patch does not break any existing text (except two in +T460-emacs-tree.sh, which fail even with 0.18 on my system). + +Cheers, +-Michal + +Michal Sojka (2): + Add test for incorrect threading of messages + Make parsing of References and In-Reply-To header less error prone + + lib/database.cc | 15 ++++++--------- + test/T510-thread-replies.sh | 27 +++++++++++++++++++++++++++ + 2 files changed, 33 insertions(+), 9 deletions(-) + +-- +2.0.0.rc2 + -- 2.26.2