Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 8d / 9d0d65ba7a661ad18e6b48691361ac09bf0c73
1 Return-Path: <felipe.contreras@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 E9636431FB6\r
6         for <notmuch@notmuchmail.org>; Sun,  6 Feb 2011 05:21:21 -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 QRSKJcaaAMjX for <notmuch@notmuchmail.org>;\r
17         Sun,  6 Feb 2011 05:21:21 -0800 (PST)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 4D168431FB5\r
22         for <notmuch@notmuchmail.org>; Sun,  6 Feb 2011 05:21:21 -0800 (PST)\r
23 Received: by fxm11 with SMTP id 11so4321499fxm.26\r
24         for <notmuch@notmuchmail.org>; Sun, 06 Feb 2011 05:21:18 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer;\r
27         bh=d0131z31kNAUR261Pqa+Mxh7hJjMHHxZoUjrOrlkG2M=;\r
28         b=lpEp5sPOLNdlB1cKrEBA3QLmS9NTjNl+WMwXUW53yTTAastRP04TzPqQpBmBbnxJ11\r
29         L/SMZhxtOwfZVTX5ZduJBTr6Wq9piju36ICIBlkIAWvoGRFhfl2rNHIZwjcpOl89jHEP\r
30         KFodJjSARxMPLOg8yQ7dIQh01OaUZVYXVyID8=\r
31 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
32         h=from:to:cc:subject:date:message-id:x-mailer;\r
33         b=gxCIq+hJplZ/IYnoEylbnyAudLdFnWvtt0u4xw8ANnhO4EVqtaeRz0sgeoLACwM5P0\r
34         XGlPoj/gERZUmZSEkl3ijFvQSEtDVfJcEUVjFZeLLsAedS1Bp/N6Q35LEdH/cp8EaZBt\r
35         UrKCd5ItaXVQSC5D7mkdlDMyqSsjyKdmFE8fk=\r
36 Received: by 10.223.115.75 with SMTP id h11mr13610916faq.119.1296998478424;\r
37         Sun, 06 Feb 2011 05:21:18 -0800 (PST)\r
38 Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80])\r
39         by mx.google.com with ESMTPS id c11sm839461fav.26.2011.02.06.05.21.17\r
40         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
41         Sun, 06 Feb 2011 05:21:17 -0800 (PST)\r
42 From: Felipe Contreras <felipe.contreras@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH] test/search: add check for slightly trick search\r
45 Date: Sun,  6 Feb 2011 15:21:13 +0200\r
46 Message-Id: <1296998473-13514-1-git-send-email-felipe.contreras@gmail.com>\r
47 X-Mailer: git-send-email 1.7.4.1.g4f7e4.dirty\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Sun, 06 Feb 2011 13:21:22 -0000\r
61 \r
62 It's not really tricky, there are many addresses with a '-' in them. I\r
63 personally really want to differentiate between foo, foo-testing, and\r
64 foo-patches.\r
65 \r
66 This fails, but it shouldn't:\r
67 \r
68  FAIL   Search by from (tricky):\r
69         --- search.17.expected  2011-02-06 13:16:31.871509560 +0000\r
70         +++ search.17.output    2011-02-06 13:16:31.871509560 +0000\r
71         @@ -1 +1,3 @@\r
72         +thread:XXX   2000-01-01 [1/1] Search By From Name; search by from (name) (inbox unread)\r
73         +thread:XXX   2000-01-01 [1/1] search-by-from-trick; search by from (tricky trick) (inbox unread)\r
74          thread:XXX   2000-01-01 [1/1] search-by-from; search by from (tricky) (inbox unread)\r
75 \r
76 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
77 ---\r
78  test/search |    6 ++++++\r
79  1 files changed, 6 insertions(+), 0 deletions(-)\r
80 \r
81 diff --git a/test/search b/test/search\r
82 index b180c7f..ad5bbaa 100755\r
83 --- a/test/search\r
84 +++ b/test/search\r
85 @@ -123,4 +123,10 @@ echo -n > expected &&\r
86  notmuch search "no-message-matches-this" > actual &&\r
87  test_cmp expected actual'\r
88  \r
89 +test_begin_subtest "Search by from (tricky):"\r
90 +add_message '[subject]="search by from (tricky trick)"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' '[from]=search-by-from-trick'\r
91 +add_message '[subject]="search by from (tricky)"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' '[from]=search-by-from'\r
92 +output=$(notmuch search from:'search-by-from' | notmuch_search_sanitize)\r
93 +test_expect_equal "$output" "thread:XXX   2000-01-01 [1/1] search-by-from; search by from (tricky) (inbox unread)"\r
94 +\r
95  test_done\r
96 -- \r
97 1.7.4.1.g4f7e4.dirty\r
98 \r