build and install doxygen api docs
[notmuch-archives.git] / ab / 591db5ec67897e2349817fe23b815ea538e5bc
1 Return-Path: <dme@dme.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 D6793431FD0\r
6         for <notmuch@notmuchmail.org>; Tue, 27 Dec 2011 02:15:46 -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.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 kpO7-J0jrBcx for <notmuch@notmuchmail.org>;\r
16         Tue, 27 Dec 2011 02:15:46 -0800 (PST)\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
18         [209.85.212.181]) (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 C5C54431FB6\r
21         for <notmuch@notmuchmail.org>; Tue, 27 Dec 2011 02:15:45 -0800 (PST)\r
22 Received: by wibhq2 with SMTP id hq2so5887214wib.26\r
23         for <notmuch@notmuchmail.org>; Tue, 27 Dec 2011 02:15:44 -0800 (PST)\r
24 Received: by 10.180.19.74 with SMTP id c10mr60079321wie.8.1324980944670;\r
25         Tue, 27 Dec 2011 02:15:44 -0800 (PST)\r
26 Received: from hotblack-desiato.hh.sledj.net\r
27         (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
28         by mx.google.com with ESMTPS id dj9sm64328327wib.6.2011.12.27.02.15.42\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Tue, 27 Dec 2011 02:15:43 -0800 (PST)\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
32         id 4FA42A04BC; Tue, 27 Dec 2011 10:15:41 +0000 (GMT)\r
33 From: David Edmondson <dme@dme.org>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [PATCH 1/3] test: Add tests for `notmuch-show-clean-address'.\r
36 Date: Tue, 27 Dec 2011 10:15:38 +0000\r
37 Message-Id: <1324980940-25466-1-git-send-email-dme@dme.org>\r
38 X-Mailer: git-send-email 1.7.7.3\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain; charset=UTF-8\r
41 Content-Transfer-Encoding: 8bit\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Tue, 27 Dec 2011 10:15:47 -0000\r
55 \r
56 ---\r
57 \r
58 The address containing UTF-8 still fails. This looks like a failure to\r
59 properly round-trip UTF-8 in the test suite - the test passes if run\r
60 directly within emacs.\r
61 \r
62  test/emacs                                         |   19 +++++++++++++++++++\r
63  .../notmuch-address-simplification                 |    9 +++++++++\r
64  2 files changed, 28 insertions(+), 0 deletions(-)\r
65  create mode 100644 test/emacs.expected-output/notmuch-address-simplification\r
66 \r
67 diff --git a/test/emacs b/test/emacs\r
68 index ca82445..bb4a75f 100755\r
69 --- a/test/emacs\r
70 +++ b/test/emacs\r
71 @@ -514,4 +514,23 @@ counter=$(test_emacs \\r
72  )\r
73  test_expect_equal "$counter" 2\r
74  \r
75 +test_begin_subtest "notmuch-show address simplification"\r
76 +test_emacs '\r
77 +(with-temp-buffer\r
78 +  (let ((input (list\r
79 +"foo@bar.com"\r
80 +"<foo@bar.com>"\r
81 +"Foo Bar <foo@bar.com>"\r
82 +"foo@bar.com <foo@bar.com>"\r
83 +"ДБ <db-uknot@stop.me.uk>"\r
84 +"foo (at home) <foo@bar.com>"\r
85 +"foo [at home] <foo@bar.com>"\r
86 +"\"Foo Bar\" <foo@bar.com>"\r
87 +"Foo Bar"\r
88 +               )))\r
89 +    (mapc (lambda (a) (insert (notmuch-show-clean-address a) "\n")) input))\r
90 +  (test-output))\r
91 +'\r
92 +test_expect_equal_file OUTPUT $EXPECTED/notmuch-address-simplification\r
93 +\r
94  test_done\r
95 diff --git a/test/emacs.expected-output/notmuch-address-simplification b/test/emacs.expected-output/notmuch-address-simplification\r
96 new file mode 100644\r
97 index 0000000..0afe190\r
98 --- /dev/null\r
99 +++ b/test/emacs.expected-output/notmuch-address-simplification\r
100 @@ -0,0 +1,9 @@\r
101 +foo@bar.com\r
102 +foo@bar.com\r
103 +Foo Bar <foo@bar.com>\r
104 +foo@bar.com\r
105 +ДБ <db-uknot@stop.me.uk>\r
106 +foo (at home) <foo@bar.com>\r
107 +foo [at home] <foo@bar.com>\r
108 +Foo Bar <foo@bar.com>\r
109 +Foo Bar\r
110 -- \r
111 1.7.7.3\r
112 \r