Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 6a / 2e2e1e00a63f4176d2516cf84ff4c4987ea955
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 66B95431FB6\r
6         for <notmuch@notmuchmail.org>; Sun, 16 Dec 2012 13:02:59 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[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 Wx8zx27ypPYQ for <notmuch@notmuchmail.org>;\r
17         Sun, 16 Dec 2012 13:02:59 -0800 (PST)\r
18 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
19         [209.85.217.181]) (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 B7ABD431FAE\r
22         for <notmuch@notmuchmail.org>; Sun, 16 Dec 2012 13:02:58 -0800 (PST)\r
23 Received: by mail-lb0-f181.google.com with SMTP id ge1so4052287lbb.26\r
24         for <notmuch@notmuchmail.org>; Sun, 16 Dec 2012 13:02:57 -0800 (PST)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=google.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
28         :in-reply-to:references:mime-version:content-type\r
29         :content-transfer-encoding:x-gm-message-state;\r
30         bh=CPmGVlt0caHT3RVwQria/4q2uxQVYuPOywHRZ2vtfjE=;\r
31         b=f2yAc/XaUIL9nL+q4SuPnvX64uwNPisWpdvESnTx9PmEED87BM/cmZd5gzH8T5t6xU\r
32         6ap14yCIH6586MxY4BJrpkPXs926zLPm9QLjKCe6DRbRj8GtrpsnKoQHdLFccn1s2PCx\r
33         +7pkY+QR9amPhVIW24K5Qy6e/eyDg9mCdiSZ0UIWJ2Z92m8Xdl/B0XWNcA3BomWXeKlg\r
34         LQpSyCgWFoqtcJtQDzbmqOmWkbWxJlTB0NMjC7thUTlzhyeIRhTqFaeo6fhYTRfoV8Us\r
35         22qjBdYbgbAePZChEL0sEU0KwoSebvY6xBF1Ac2RAhfrZSK9BmTbmX9e/cme/+RWqCTO\r
36         /4BQ==\r
37 Received: by 10.112.38.103 with SMTP id f7mr4720456lbk.120.1355691777328;\r
38         Sun, 16 Dec 2012 13:02:57 -0800 (PST)\r
39 Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.\r
40         [80.223.81.27])\r
41         by mx.google.com with ESMTPS id ew10sm4114166lbb.10.2012.12.16.13.02.55\r
42         (version=SSLv3 cipher=OTHER); Sun, 16 Dec 2012 13:02:56 -0800 (PST)\r
43 From: Jani Nikula <jani@nikula.org>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH v3 4/5] test: notmuch search --format=text0\r
46 Date: Sun, 16 Dec 2012 23:02:40 +0200\r
47 Message-Id:\r
48  <294c12ec82aa90f64d2dd4a99938a8f8459609b8.1355691124.git.jani@nikula.org>\r
49 X-Mailer: git-send-email 1.7.10.4\r
50 In-Reply-To: <cover.1355691124.git.jani@nikula.org>\r
51 References: <cover.1355691124.git.jani@nikula.org>\r
52 In-Reply-To: <cover.1355691124.git.jani@nikula.org>\r
53 References: <cover.1355691124.git.jani@nikula.org>\r
54 MIME-Version: 1.0\r
55 Content-Type: text/plain; charset=UTF-8\r
56 Content-Transfer-Encoding: 8bit\r
57 X-Gm-Message-State:\r
58  ALoCoQlT/mfH9qEK0fHYSadTSIwq4Ye1bVADIfwbImxQP5HSOZVd09oGUfHBHzxKUMVoP2zD3t1v\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Sun, 16 Dec 2012 21:02:59 -0000\r
72 \r
73 ---\r
74  test/text |   33 +++++++++++++++++++++++++++++++++\r
75  1 file changed, 33 insertions(+)\r
76 \r
77 diff --git a/test/text b/test/text\r
78 index 428c89b..b5ccefc 100755\r
79 --- a/test/text\r
80 +++ b/test/text\r
81 @@ -52,4 +52,37 @@ output=$(notmuch search --format=text "tëxt-search-méssage" | notmuch_search_s\r
82  test_expect_equal "$output" \\r
83  "thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; text-search-utf8-body-sübjéct (inbox unread)"\r
84  \r
85 +add_email_corpus\r
86 +\r
87 +test_begin_subtest "Search message tags: text0"\r
88 +cat <<EOF > EXPECTED\r
89 +attachment inbox signed unread\r
90 +EOF\r
91 +notmuch search --format=text0 --output=tags '*' | xargs -0 | notmuch_search_sanitize > OUTPUT\r
92 +test_expect_equal_file EXPECTED OUTPUT\r
93 +\r
94 +# Use tr(1) to convert --output=text0 to --output=text for\r
95 +# comparison. Also translate newlines to spaces to fail with more\r
96 +# noise if they are present as delimiters instead of null\r
97 +# characters. This assumes there are no newlines in the data.\r
98 +test_begin_subtest "Compare text vs. text0 for threads"\r
99 +notmuch search --format=text --output=threads '*' | notmuch_search_sanitize > EXPECTED\r
100 +notmuch search --format=text0 --output=threads '*' | tr "\n\0" " \n" | notmuch_search_sanitize > OUTPUT\r
101 +test_expect_equal_file EXPECTED OUTPUT\r
102 +\r
103 +test_begin_subtest "Compare text vs. text0 for messages"\r
104 +notmuch search --format=text --output=messages '*' | notmuch_search_sanitize > EXPECTED\r
105 +notmuch search --format=text0 --output=messages '*' | tr "\n\0" " \n" | notmuch_search_sanitize > OUTPUT\r
106 +test_expect_equal_file EXPECTED OUTPUT\r
107 +\r
108 +test_begin_subtest "Compare text vs. text0 for files"\r
109 +notmuch search --format=text --output=files '*' | notmuch_search_sanitize > EXPECTED\r
110 +notmuch search --format=text0 --output=files '*' | tr "\n\0" " \n" | notmuch_search_sanitize > OUTPUT\r
111 +test_expect_equal_file EXPECTED OUTPUT\r
112 +\r
113 +test_begin_subtest "Compare text vs. text0 for tags"\r
114 +notmuch search --format=text --output=tags '*' | notmuch_search_sanitize > EXPECTED\r
115 +notmuch search --format=text0 --output=tags '*' | tr "\n\0" " \n" | notmuch_search_sanitize > OUTPUT\r
116 +test_expect_equal_file EXPECTED OUTPUT\r
117 +\r
118  test_done\r
119 -- \r
120 1.7.10.4\r
121 \r