Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / f1 / f5a57e2657695bd0398672e559c27d2d5ee625
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 47C17431FDD\r
6         for <notmuch@notmuchmail.org>; Mon,  2 Sep 2013 22:19:17 -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 OsW+z99tYvuv for <notmuch@notmuchmail.org>;\r
16         Mon,  2 Sep 2013 22:19:08 -0700 (PDT)\r
17 Received: from mail-ea0-f178.google.com (mail-ea0-f178.google.com\r
18         [209.85.215.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id B4885431FDA\r
21         for <notmuch@notmuchmail.org>; Mon,  2 Sep 2013 22:19:07 -0700 (PDT)\r
22 Received: by mail-ea0-f178.google.com with SMTP id a15so2700219eae.23\r
23         for <notmuch@notmuchmail.org>; Mon, 02 Sep 2013 22:19:05 -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:cc:subject:date:message-id:in-reply-to\r
27         :references;\r
28         bh=9efQWUv8kZBoF238XjhU7LhyXNViPrzp2PHBNofGecQ=;\r
29         b=Rme2ylUxuGVbaznUU7Ffn4bLbnFwrzta/8dg1aklBwsf8LPPHfEBTVn1/f6nhiFBoC\r
30         x0YGFGhYciGgSOI6PNDQtNRjOKX+mRQ6PDNy9iCMQqoxa5f6ACnjuelA3OumfCoCT/7R\r
31         TSX/WDCi45hqeDnlTiXBnMkFc/TFvi43HFbaLPcuEcxQyaK24OOBnAfZzF499CC8zVPv\r
32         PPCswEP3Ycx/yh9c1xBSZIDK+G79owdHvcElzQVzwb4hSZXCO7b74ryTfJvIcGExJDaj\r
33         gwRWsJvTZ38/NlcvWj6vgPNM1vqkImPQ1uy7zS8XkK5rfOwjbJzxOuawBU0Zl3mmozT9\r
34         sbKg==\r
35 X-Gm-Message-State:\r
36  ALoCoQkyn4X/3ustqCSSOHcvvx/jzcU9n2NExzJFpme18jdVNHdYvKjMH03hxmNXqLj3b7PIcTLL\r
37 X-Received: by 10.14.87.135 with SMTP id y7mr507546eee.69.1378185544527;\r
38         Mon, 02 Sep 2013 22:19:04 -0700 (PDT)\r
39 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
40         [88.195.111.91])\r
41         by mx.google.com with ESMTPSA id b45sm28227805eef.4.1969.12.31.16.00.00\r
42         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
43         Mon, 02 Sep 2013 22:19:03 -0700 (PDT)\r
44 From: Jani Nikula <jani@nikula.org>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: [PATCH 1/2] test: add more maildir flag syncing related tests to\r
47         insert\r
48 Date: Tue,  3 Sep 2013 08:19:02 +0300\r
49 Message-Id: <1378185543-25271-1-git-send-email-jani@nikula.org>\r
50 X-Mailer: git-send-email 1.8.4.rc3\r
51 In-Reply-To: <1378170613-3584-1-git-send-email-david@tethera.net>\r
52 References: <1378170613-3584-1-git-send-email-david@tethera.net>\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Tue, 03 Sep 2013 05:19:17 -0000\r
66 \r
67 Specifically test maildir flag syncing with insert.\r
68 \r
69 ---\r
70 \r
71 These are additional tests on top of David's fix.\r
72 ---\r
73  test/insert | 36 ++++++++++++++++++++++++++++++++++++\r
74  1 file changed, 36 insertions(+)\r
75 \r
76 diff --git a/test/insert b/test/insert\r
77 index 1718120..9b448e5 100755\r
78 --- a/test/insert\r
79 +++ b/test/insert\r
80 @@ -77,6 +77,42 @@ notmuch insert +custom -unread < "$gen_msg_filename"\r
81  output=$(notmuch count tag:custom NOT tag:unread)\r
82  test_expect_equal "$output" "1"\r
83  \r
84 +test_begin_subtest "Insert message with default tags stays in new/"\r
85 +gen_insert_msg\r
86 +notmuch insert < "$gen_msg_filename"\r
87 +output=$(notmuch search --output=files id:$gen_msg_id)\r
88 +dirname=$(dirname "$output")\r
89 +test_expect_equal "$dirname" "$MAIL_DIR/new"\r
90 +\r
91 +test_begin_subtest "Insert message with non-maildir synced tags stays in new/"\r
92 +gen_insert_msg\r
93 +notmuch insert +custom -inbox < "$gen_msg_filename"\r
94 +output=$(notmuch search --output=files id:$gen_msg_id)\r
95 +dirname=$(dirname "$output")\r
96 +test_expect_equal "$dirname" "$MAIL_DIR/new"\r
97 +\r
98 +test_begin_subtest "Insert message with custom new.tags goes to cur/"\r
99 +OLDCONFIG=$(notmuch config get new.tags)\r
100 +notmuch config set new.tags test\r
101 +gen_insert_msg\r
102 +notmuch insert < "$gen_msg_filename"\r
103 +output=$(notmuch search --output=files id:$gen_msg_id)\r
104 +dirname=$(dirname "$output")\r
105 +notmuch config set new.tags $OLDCONFIG\r
106 +test_expect_equal "$dirname" "$MAIL_DIR/cur"\r
107 +\r
108 +# additional check on the previous message\r
109 +test_begin_subtest "Insert message with custom new.tags actually gets the tags"\r
110 +output=$(notmuch search --output=tags id:$gen_msg_id)\r
111 +test_expect_equal "$output" "test"\r
112 +\r
113 +test_begin_subtest "Insert message with maildir synced tags goes to cur/"\r
114 +gen_insert_msg\r
115 +notmuch insert +flagged < "$gen_msg_filename"\r
116 +output=$(notmuch search --output=files id:$gen_msg_id)\r
117 +dirname=$(dirname "$output")\r
118 +test_expect_equal "$dirname" "$MAIL_DIR/cur"\r
119 +\r
120  test_begin_subtest "Insert message into folder"\r
121  gen_insert_msg\r
122  notmuch insert --folder=Drafts < "$gen_msg_filename"\r
123 -- \r
124 1.8.4.rc3\r
125 \r