Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / 4e / 0021b122376d228f55e9c67dd624bd84164a83
1 Return-Path: <tomi.ollila@iki.fi>\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 29D2D431FAF\r
6         for <notmuch@notmuchmail.org>; Tue,  5 Jun 2012 10:40:49 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 i3TBoY1GM1VS for <notmuch@notmuchmail.org>;\r
16         Tue,  5 Jun 2012 10:40:48 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 565E2431FAE\r
19         for <notmuch@notmuchmail.org>; Tue,  5 Jun 2012 10:40:48 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 0E2A210014D; Tue,  5 Jun 2012 20:40:58 +0300 (EEST)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
24 Subject: Re: [PATCH 1/2] test: add test for emacs notmuch-show-strip-re\r
25         function\r
26 In-Reply-To:\r
27  <3a9ce3cd2074e311f86f3e416644b2879516ffbf.1338910938.git.jani@nikula.org>\r
28 References:\r
29  <3a9ce3cd2074e311f86f3e416644b2879516ffbf.1338910938.git.jani@nikula.org>\r
30 User-Agent: Notmuch/0.13.2+7~g08be9ce (http://notmuchmail.org) Emacs/23.1.1\r
31         (x86_64-redhat-linux-gnu)\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
33         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
34         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
35 Date: Tue, 05 Jun 2012 20:40:57 +0300\r
36 Message-ID: <m2y5o17j2u.fsf@guru.guru-group.fi>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain; charset=us-ascii\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Tue, 05 Jun 2012 17:40:49 -0000\r
52 \r
53 On Tue, Jun 05 2012, Jani Nikula <jani@nikula.org> wrote:\r
54 \r
55 > The function is used for stripping "re:" from subjects to generate\r
56 > "bare subjects". Include broken test for having "re:" in the middle of\r
57 > the subject.\r
58 \r
59 LGTM\r
60 \r
61 Tomi\r
62 \r
63 > ---\r
64 >  test/emacs-show |   13 +++++++++++++\r
65 >  1 file changed, 13 insertions(+)\r
66 >\r
67 > diff --git a/test/emacs-show b/test/emacs-show\r
68 > index 2498564..1ddb28e 100755\r
69 > --- a/test/emacs-show\r
70 > +++ b/test/emacs-show\r
71 > @@ -24,4 +24,17 @@ test_emacs "(notmuch-show \"id:$message_id\")\r
72 >           (test-visible-output)"\r
73 >  test_expect_equal_file OUTPUT EXPECTED\r
74 >  \r
75 > +test_begin_subtest "Bare subject #1"\r
76 > +output=$(test_emacs '(notmuch-show-strip-re "Re: subject")')\r
77 > +test_expect_equal "$output" '"subject"'\r
78 > +\r
79 > +test_begin_subtest "Bare subject #2"\r
80 > +output=$(test_emacs '(notmuch-show-strip-re "re:Re: re:  Re:  re:subject")')\r
81 > +test_expect_equal "$output" '"subject"'\r
82 > +\r
83 > +test_begin_subtest "Bare subject #3"\r
84 > +test_subtest_known_broken\r
85 > +output=$(test_emacs '(notmuch-show-strip-re "the cure: fix the regexp")')\r
86 > +test_expect_equal "$output" '"the cure: fix the regexp"'\r
87 > +\r
88 >  test_done\r
89 > -- \r
90 > 1.7.9.5\r
91 >\r
92 > _______________________________________________\r
93 > notmuch mailing list\r
94 > notmuch@notmuchmail.org\r
95 > http://notmuchmail.org/mailman/listinfo/notmuch\r