Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / fc / 62dadd2dbe7cdd2ae45dd825851c7c9a0e497e
1 Return-Path: <pieter@praet.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 A28AA41ED85\r
6         for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:20: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: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 Bf5RPaSmM4yH for <notmuch@notmuchmail.org>;\r
16         Thu, 30 Jun 2011 01:20:37 -0700 (PDT)\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
18  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
19  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
20  0F9AD41ED86    for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:20:36 -0700\r
21  (PDT)\r
22 Received: by wwj40 with SMTP id 40so1626089wwj.2\r
23         for <notmuch@notmuchmail.org>; Thu, 30 Jun 2011 01:20:35 -0700 (PDT)\r
24 Received: by 10.217.5.130 with SMTP id w2mr2375278wes.61.1309422035524;\r
25         Thu, 30 Jun 2011 01:20:35 -0700 (PDT)\r
26 Received: from localhost ([109.131.21.173])\r
27         by mx.google.com with ESMTPS id fi5sm1447823wbb.22.2011.06.30.01.20.33\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Thu, 30 Jun 2011 01:20:34 -0700 (PDT)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [PATCH] add `tag:' prefix to `--output=tags' results\r
33 Date: Thu, 30 Jun 2011 10:20:29 +0200\r
34 Message-Id: <1309422029-22924-1-git-send-email-pieter@praet.org>\r
35 X-Mailer: git-send-email 1.7.4.1\r
36 In-Reply-To: <877hbiep5g.fsf@SSpaeth.de>\r
37 References: <877hbiep5g.fsf@SSpaeth.de>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Thu, 30 Jun 2011 08:20:37 -0000\r
51 \r
52 Alter `do_search_tags()' to prepend each result with `tag:',\r
53 and update affected test.\r
54 \r
55 This makes its output consistent with `do_search_threads()' and\r
56 `do_search_messages()'.\r
57 \r
58 See this discussion: id:"871v6b79s0.fsf@yoom.home.cworth.org"\r
59 \r
60 Signed-off-by: Pieter Praet <pieter@praet.org>\r
61 ---\r
62  notmuch-search.c   |    2 +-\r
63  test/search-output |    8 ++++----\r
64  2 files changed, 5 insertions(+), 5 deletions(-)\r
65 \r
66 diff --git a/notmuch-search.c b/notmuch-search.c\r
67 index faccaf7..5b91a40 100644\r
68 --- a/notmuch-search.c\r
69 +++ b/notmuch-search.c\r
70 @@ -364,7 +364,7 @@ do_search_tags (notmuch_database_t *notmuch,\r
71         if (! first_tag)\r
72             fputs (format->item_sep, stdout);\r
73  \r
74 -       format->item_id (tags, "", tag);\r
75 +       format->item_id (tags, "tag:", tag);\r
76  \r
77         first_tag = 0;\r
78      }\r
79 diff --git a/test/search-output b/test/search-output\r
80 index 10291c3..37f1b3d 100755\r
81 --- a/test/search-output\r
82 +++ b/test/search-output\r
83 @@ -289,10 +289,10 @@ test_expect_equal_file OUTPUT EXPECTED\r
84  test_begin_subtest "--output=tags"\r
85  notmuch search --output=tags '*' >OUTPUT\r
86  cat <<EOF >EXPECTED\r
87 -attachment\r
88 -inbox\r
89 -signed\r
90 -unread\r
91 +tag:attachment\r
92 +tag:inbox\r
93 +tag:signed\r
94 +tag:unread\r
95  EOF\r
96  test_expect_equal_file OUTPUT EXPECTED\r
97  \r
98 -- \r
99 1.7.4.1\r
100 \r