Re: Applying patches directly from emails?
[notmuch-archives.git] / 62 / a76f0e0f7509c2d080ad9017a5212f682c72a1
1 Return-Path: <novalazy@gmail.com>\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 A7A4E431FD6\r
6         for <notmuch@notmuchmail.org>; Fri, 21 Jun 2013 22:48:16 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id ckxeG0QUWFQA for <notmuch@notmuchmail.org>;\r
17         Fri, 21 Jun 2013 22:48:11 -0700 (PDT)\r
18 Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com\r
19         [209.85.220.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 6E0E8431FB6\r
22         for <notmuch@notmuchmail.org>; Fri, 21 Jun 2013 22:47:41 -0700 (PDT)\r
23 Received: by mail-pa0-f42.google.com with SMTP id rl6so8790831pac.15\r
24         for <notmuch@notmuchmail.org>; Fri, 21 Jun 2013 22:47:40 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
27         bh=D7pXpe8OHnu2jofJFo6k5Qevrt9ddgvDcTwceFiZkUE=;\r
28         b=suVcvDZrfbSDzZwfiKw6MbKXd3hBnl1bykI2erL03+9LYsu7oJvDTFEb288yztZu/s\r
29         d4btpT6Rzlffp3kLCmEmPz612I2dn+Ykbc84scTWRAngZGyrv9fw11ZEnt/6RVLFfkT7\r
30         abzIa6i8hvup2x37Bsk13MCdh7I7HV9vwS+KpGbX/XQeptC2ZORzGI7bXRqzJT9AUC3+\r
31         TxYKWUnz1QMPtbNinZqAS2oIRvhrq444yujCMS0PN/Y3twQJfWS5+PEyDMy51u/bzkt1\r
32         fEEt46XyaGcwmk6i/Jda+rPlI2LDQH2pKubvaF1vUDoeoeSPL/Ei8eBNBRJFpMQuM9xu\r
33         iHuw==\r
34 X-Received: by 10.66.179.78 with SMTP id de14mr19398929pac.18.1371880060722;\r
35         Fri, 21 Jun 2013 22:47:40 -0700 (PDT)\r
36 Received: from localhost (215.42.233.220.static.exetel.com.au.\r
37         [220.233.42.215]) by mx.google.com with ESMTPSA id\r
38         re16sm8900263pac.16.2013.06.21.22.47.38 for <multiple recipients>\r
39         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
40         Fri, 21 Jun 2013 22:47:40 -0700 (PDT)\r
41 From: Peter Wang <novalazy@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH v6 09/12] test: test insert --folder option\r
44 Date: Sat, 22 Jun 2013 15:46:45 +1000\r
45 Message-Id: <1371880008-18312-10-git-send-email-novalazy@gmail.com>\r
46 X-Mailer: git-send-email 1.7.12.1\r
47 In-Reply-To: <1371880008-18312-1-git-send-email-novalazy@gmail.com>\r
48 References: <1371880008-18312-1-git-send-email-novalazy@gmail.com>\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Sat, 22 Jun 2013 05:48:16 -0000\r
62 \r
63 Add tests for notmuch insert --folder option.\r
64 ---\r
65  test/insert | 17 +++++++++++++++++\r
66  1 file changed, 17 insertions(+)\r
67 \r
68 diff --git a/test/insert b/test/insert\r
69 index b432a74..f573c76 100755\r
70 --- a/test/insert\r
71 +++ b/test/insert\r
72 @@ -77,4 +77,21 @@ notmuch insert +custom -unread < "$gen_msg_filename"\r
73  output=$(notmuch count tag:custom NOT tag:unread)\r
74  test_expect_equal "$output" "1"\r
75  \r
76 +test_begin_subtest "Insert message into folder"\r
77 +gen_insert_msg\r
78 +notmuch insert --folder=Drafts < "$gen_msg_filename"\r
79 +output=$(notmuch search --output=files folder:Drafts)\r
80 +dirname=$(dirname "$output")\r
81 +test_expect_equal "$dirname" "$MAIL_DIR/Drafts/cur"\r
82 +\r
83 +test_begin_subtest "Insert message into folder, add/remove tags"\r
84 +gen_insert_msg\r
85 +notmuch insert --folder=Drafts +draft -unread < "$gen_msg_filename"\r
86 +output=$(notmuch count folder:Drafts tag:draft NOT tag:unread)\r
87 +test_expect_equal "$output" "1"\r
88 +\r
89 +gen_insert_msg\r
90 +test_expect_code 1 "Insert message into non-existent folder" \\r
91 +    "notmuch insert --folder=nonesuch < $gen_msg_filename"\r
92 +\r
93  test_done\r
94 -- \r
95 1.7.12.1\r
96 \r