Re: [PATCH 00/11] Fix search tagging races
[notmuch-archives.git] / 41 / 559b8233e2f9a342dc88605aca61fb1c709d66
1 Return-Path: <hohndel@gr8dns.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 7012A4196F3\r
6         for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 21:42:37 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id nE3ahVC6VokB for <notmuch@notmuchmail.org>;\r
16         Thu, 22 Apr 2010 21:42:36 -0700 (PDT)\r
17 Received: from mail.hohndel.org (mail.hohndel.org [65.23.157.147])\r
18         by olra.theworths.org (Postfix) with ESMTP id 22030431FC1\r
19         for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 21:42:36 -0700 (PDT)\r
20 Received: by mail.hohndel.org (Postfix, from userid 112)\r
21         id 325EA340FC; Fri, 23 Apr 2010 00:42:35 -0400 (EDT)\r
22 Received: from x200.gr8dns.org (unknown [65.23.157.147])\r
23         by mail.hohndel.org (Postfix) with ESMTP id 1D3A1340F4;\r
24         Fri, 23 Apr 2010 00:42:32 -0400 (EDT)\r
25 Received: by x200.gr8dns.org (Postfix, from userid 500)\r
26         id BA8B8C0458; Thu, 22 Apr 2010 21:42:31 -0700 (PDT)\r
27 From: Dirk Hohndel <hohndel@infradead.org>\r
28 To: <notmuch@notmuchmail.org>\r
29 Subject: [PATCH 2/2] Remove the pipe symbol in the author list when the last\r
30         author matches\r
31 Date: Thu, 22 Apr 2010 21:42:15 -0700\r
32 Message-Id: <1271997735-17560-3-git-send-email-hohndel@infradead.org>\r
33 X-Mailer: git-send-email 1.6.6.1\r
34 In-Reply-To: <1271997735-17560-2-git-send-email-hohndel@infradead.org>\r
35 References: <1271997735-17560-1-git-send-email-hohndel@infradead.org>\r
36         <1271997735-17560-2-git-send-email-hohndel@infradead.org>\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Fri, 23 Apr 2010 04:42:37 -0000\r
50 \r
51 this fixes the bug exposed by the tests for this feature\r
52 \r
53 Signed-off-by: Dirk Hohndel <hohndel@infradead.org>\r
54 ---\r
55  lib/thread.cc |    4 ++++\r
56  1 files changed, 4 insertions(+), 0 deletions(-)\r
57 \r
58 diff --git a/lib/thread.cc b/lib/thread.cc\r
59 index 4e389c5..1dda220 100644\r
60 --- a/lib/thread.cc\r
61 +++ b/lib/thread.cc\r
62 @@ -140,6 +140,10 @@ _thread_move_matched_author (notmuch_thread_t *thread,\r
63         }\r
64      } else {\r
65         thread->nonmatched_authors += author_len;\r
66 +       /* so now all authors are matched - let's remove the '|' */\r
67 +       lastpipe = strchr(thread->authors,'|');\r
68 +       if (lastpipe)\r
69 +           *lastpipe = ',';     \r
70      }\r
71      return;\r
72  }\r
73 -- \r
74 1.6.6.1\r
75 \r