New "notmuch address" command
[notmuch-archives.git] / 47 / 47befee507eed40ea23a9833a9c9941fa59267
1 Return-Path: <dmitry.kurochkin@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 77574431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 04:26:04 -0800 (PST)\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 8sL4fAVm7Mto for <notmuch@notmuchmail.org>;\r
17         Mon, 30 Jan 2012 04:26:03 -0800 (PST)\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
19         [209.85.214.53]) (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 9C985429E34\r
22         for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 04:26:03 -0800 (PST)\r
23 Received: by bke11 with SMTP id 11so1334330bke.26\r
24         for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 04:26:02 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
27         bh=g3uoJBpABW+80LLVhwItKYFpHeo685AOtGejs2CtLj8=;\r
28         b=cXyIyvMSQqFLksh/YyRgQj/L1XvA2NT60Q4P7X1vwfhCgM7hZj7YGRir/JJjZV90dR\r
29         G3QuZqdWsjCIYQO2wgHBrLvDv6Hi8967LXM+xdtkyl8iE+msY9P/1wJkEqnHxToWkEfv\r
30         dwb9tSde+1ye/88b01SY33QVICmYbHpjHK4O8=\r
31 Received: by 10.204.130.150 with SMTP id t22mr8283220bks.1.1327926362292;\r
32         Mon, 30 Jan 2012 04:26:02 -0800 (PST)\r
33 Received: from localhost ([91.144.186.21])\r
34         by mx.google.com with ESMTPS id x20sm22010022bka.9.2012.01.30.04.26.01\r
35         (version=TLSv1/SSLv3 cipher=OTHER);\r
36         Mon, 30 Jan 2012 04:26:01 -0800 (PST)\r
37 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 1/2] test: add test for hiding Original Message region at\r
40         beginning of a message\r
41 Date: Mon, 30 Jan 2012 16:24:45 +0400\r
42 Message-Id: <1327926286-16680-2-git-send-email-dmitry.kurochkin@gmail.com>\r
43 X-Mailer: git-send-email 1.7.8.3\r
44 In-Reply-To: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com>\r
45 References: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com>\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Mon, 30 Jan 2012 12:26:04 -0000\r
59 \r
60 The test is currently broken and will be fixed by a subsequent patch.\r
61 \r
62 The patch adds a new file for tests of Emacs notmuch-show view.\r
63 \r
64 Based on patch by David Edmondson [1].\r
65 \r
66 [1] id:"1327562380-12894-4-git-send-email-dme@dme.org"\r
67 ---\r
68  test/emacs-show   |   28 ++++++++++++++++++++++++++++\r
69  test/notmuch-test |    1 +\r
70  2 files changed, 29 insertions(+), 0 deletions(-)\r
71  create mode 100755 test/emacs-show\r
72 \r
73 diff --git a/test/emacs-show b/test/emacs-show\r
74 new file mode 100755\r
75 index 0000000..9800575\r
76 --- /dev/null\r
77 +++ b/test/emacs-show\r
78 @@ -0,0 +1,28 @@\r
79 +#!/usr/bin/env bash\r
80 +\r
81 +test_description="Testing emacs notmuch-show view"\r
82 +. test-lib.sh\r
83 +\r
84 +test_begin_subtest "Hiding Original Message region at beginning of a message"\r
85 +test_subtest_known_broken\r
86 +message_id='OriginalMessageHiding.1@notmuchmail.org'\r
87 +add_message \\r
88 +    [id]="$message_id" \\r
89 +    '[subject]="Hiding Original Message region at beginning of a message"' \\r
90 +    '[body]="-----Original Message-----\r
91 +Text here."'\r
92 +\r
93 +cat <<EOF >EXPECTED\r
94 +Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox)\r
95 +Subject: Hiding Original Message region at beginning of a message\r
96 +To: Notmuch Test Suite <test_suite@notmuchmail.org>\r
97 +Date: Fri, 05 Jan 2001 15:43:57 +0000\r
98 +\r
99 +[ 2-line hidden original message. Click/Enter to show. ]\r
100 +EOF\r
101 +\r
102 +test_emacs "(notmuch-show \"id:$message_id\")\r
103 +           (test-visible-output)"\r
104 +test_expect_equal_file OUTPUT EXPECTED\r
105 +\r
106 +test_done\r
107 diff --git a/test/notmuch-test b/test/notmuch-test\r
108 index 3f1740c..c814be9 100755\r
109 --- a/test/notmuch-test\r
110 +++ b/test/notmuch-test\r
111 @@ -54,6 +54,7 @@ TESTS="\r
112    argument-parsing\r
113    emacs-test-functions.sh\r
114    emacs-address-cleaning.sh\r
115 +  emacs-show\r
116  "\r
117  TESTS=${NOTMUCH_TESTS:=$TESTS}\r
118  \r
119 -- \r
120 1.7.8.3\r
121 \r