Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / ed / 61e11dae93dc2fc1b8a6f615a14dd29bacf146
1 Return-Path: <jani@nikula.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 62E85431FDA\r
6         for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 05:11:35 -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 EPZ8G-PT8QGE for <notmuch@notmuchmail.org>;\r
16         Tue,  3 Sep 2013 05:11:29 -0700 (PDT)\r
17 Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com\r
18  [74.125.83.48])        (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  1DD79431FD8    for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 05:11:29 -0700\r
21  (PDT)\r
22 Received: by mail-ee0-f48.google.com with SMTP id l10so2899566eei.7\r
23         for <notmuch@notmuchmail.org>; Tue, 03 Sep 2013 05:11:28 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=1e100.net; s=20130820;\r
26         h=x-gm-message-state:from:to:subject:in-reply-to:references\r
27         :user-agent:date:message-id:mime-version:content-type;\r
28         bh=Mn3UVdTPholh6ZevzRrezhUf+/b54sjia4MaWB6Wii8=;\r
29         b=Y4MQf5t73pdSSF04qwOgwxzZeLl7cm53VuN7T83qXHNz+VMRPoM/ET51RJXgCFj0pj\r
30         RfQ6e/+pNpAQB5/RVl2xJxnAI4U3h5dcPZqIzrxNRP1D7pW16ZzDmWHA1+dQ9jQwDlKu\r
31         EsaRAdr6XuxP/3lldZd4TCxAxK7APE5cN7xeAOqXVKvoq7+im4n+3po5OV+fXx3wL6+X\r
32         GMcAgsuSqXa/C0B1VNfIsKUj/poE2rhZXClfgZdFuy1MwyZt9cX3RpHMniTTApxQF6kC\r
33         lKopGVTm/pnAqW53EJNrtjVsIqSRHtsqyKHqsnsCQ7/+keFkCWqPRuMFSPV+bSWK+Oon\r
34         zncw==\r
35 X-Gm-Message-State:\r
36  ALoCoQmKHPD6g6BdFIsSL779BimHW5ArypeJBk/tcdof9JWgabNA/0X2nfvqbgsFHyuFyLTl+WPR\r
37 X-Received: by 10.14.175.2 with SMTP id y2mr435686eel.83.1378210286595;\r
38         Tue, 03 Sep 2013 05:11:26 -0700 (PDT)\r
39 Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
40         by mx.google.com with ESMTPSA id h52sm31018870eez.3.1969.12.31.16.00.00\r
41         (version=TLSv1.1 cipher=RC4-SHA bits=128/128);\r
42         Tue, 03 Sep 2013 05:11:24 -0700 (PDT)\r
43 From: Jani Nikula <jani@nikula.org>\r
44 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
45 Subject: Re: [PATCH 1/2] test: add more maildir flag syncing related tests to\r
46         insert\r
47 In-Reply-To: <87mwnus1bg.fsf@zancas.localnet>\r
48 References: <1378170613-3584-1-git-send-email-david@tethera.net>\r
49         <1378185543-25271-1-git-send-email-jani@nikula.org>\r
50         <87mwnus1bg.fsf@zancas.localnet>\r
51 User-Agent: Notmuch/0.15.2+177~gb1ba76c (http://notmuchmail.org) Emacs/23.2.1\r
52         (x86_64-pc-linux-gnu)\r
53 Date: Tue, 03 Sep 2013 14:11:12 +0200\r
54 Message-ID: <87fvtmds0v.fsf@nikula.org>\r
55 MIME-Version: 1.0\r
56 Content-Type: text/plain; charset=us-ascii\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Tue, 03 Sep 2013 12:11:35 -0000\r
70 \r
71 On Tue, 03 Sep 2013, David Bremner <david@tethera.net> wrote:\r
72 > Jani Nikula <jani@nikula.org> writes:\r
73 >>  \r
74 >> +test_begin_subtest "Insert message with default tags stays in new/"\r
75 >> +gen_insert_msg\r
76 >> +notmuch insert < "$gen_msg_filename"\r
77 >> +output=$(notmuch search --output=files id:$gen_msg_id)\r
78 >> +dirname=$(dirname "$output")\r
79 >> +test_expect_equal "$dirname" "$MAIL_DIR/new"\r
80 >\r
81 > I'm not sure if this is a bug or a feature, but this enforces a\r
82 > constraint on the default tags that notmuch ships enabled. Is that what\r
83 > we want, or would it be better to set unread explicitely here?\r
84 \r
85 We already pretty heavily depend on those default tags, so I'd say just\r
86 leave it like this. If we want to fix it later, there's some other\r
87 fixing to do too. Try this patch and 'make test':\r
88 \r
89 diff --git a/notmuch-config.c b/notmuch-config.c\r
90 index 6845e3c..8362c13 100644\r
91 --- a/notmuch-config.c\r
92 +++ b/notmuch-config.c\r
93 @@ -365,8 +365,8 @@ notmuch_config_open (void *ctx,\r
94      }\r
95  \r
96      if (notmuch_config_get_new_tags (config, &tmp) == NULL) {\r
97 -        const char *tags[] = { "unread", "inbox" };\r
98 -        notmuch_config_set_new_tags (config, tags, 2);\r
99 +        const char *tags[] = { "flagged" };\r
100 +        notmuch_config_set_new_tags (config, tags, 1);\r
101      }\r
102  \r
103      if (notmuch_config_get_new_ignore (config, &tmp) == NULL) {\r
104 \r
105 I get:\r
106 \r
107 Notmuch test suite complete.\r
108 396/579 tests passed.\r
109 183 tests failed.\r
110 \r
111 \r
112 BR,\r
113 Jani.\r