Re: Avoiding the "huge INBOX of death"
[notmuch-archives.git] / d1 / 4b4e182fd4b1f3c491ba69cfe8205b22db5674
1 Return-Path: <bremner@tethera.net>\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 arlo.cworth.org (Postfix) with ESMTP id 2D65D6DE1995\r
6  for <notmuch@notmuchmail.org>; Fri, 29 Jan 2016 03:53:36 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.309\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.309 tagged_above=-999 required=5 tests=[AWL=0.242,\r
12   RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id 17fkNJxANxvi for <notmuch@notmuchmail.org>;\r
16  Fri, 29 Jan 2016 03:53:34 -0800 (PST)\r
17 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id 634116DE014A\r
19  for <notmuch@notmuchmail.org>; Fri, 29 Jan 2016 03:53:34 -0800 (PST)\r
20 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
21  (envelope-from <bremner@tethera.net>)\r
22  id 1aP7bi-0001ve-3C; Fri, 29 Jan 2016 06:52:54 -0500\r
23 Received: (nullmailer pid 5656 invoked by uid 1000);\r
24  Fri, 29 Jan 2016 11:53:30 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: notmuch@notmuchmail.org\r
27 Subject: [PATCH 1/3] test: replace single giant term with large phrase\r
28 Date: Fri, 29 Jan 2016 07:53:11 -0400\r
29 Message-Id: <1454068393-5406-2-git-send-email-david@tethera.net>\r
30 X-Mailer: git-send-email 2.6.4\r
31 In-Reply-To: <1454068393-5406-1-git-send-email-david@tethera.net>\r
32 References: <1454068393-5406-1-git-send-email-david@tethera.net>\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.20\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37  <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
39  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Fri, 29 Jan 2016 11:53:36 -0000\r
46 \r
47 We only need a long string, not a single long term to trigger batch\r
48 mode.  The giant term triggers a bug/incompatibility in Xapian 1.3.4\r
49 that throws an exception because it is longer than the Xapian term size\r
50 limit.\r
51 ---\r
52  test/T310-emacs.sh | 2 +-\r
53  1 file changed, 1 insertion(+), 1 deletion(-)\r
54 \r
55 diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh\r
56 index 61bc369..42e3140 100755\r
57 --- a/test/T310-emacs.sh\r
58 +++ b/test/T310-emacs.sh\r
59 @@ -130,7 +130,7 @@ test_expect_equal "$output" "thread:XXX   2009-11-18 [4/4] Jjgod Jiang, Alexande\r
60  test_begin_subtest "Add tag (large query)"\r
61  # We use a long query to force us into batch mode and use a funny tag\r
62  # that requires escaping for batch tagging.\r
63 -test_emacs "(notmuch-tag (concat \"$os_x_darwin_thread\" \" or \" (make-string notmuch-tag-argument-limit ?x)) (list \"+tag-from-%-large-query\"))"\r
64 +test_emacs "(notmuch-tag (concat \"$os_x_darwin_thread\" \" or \" (mapconcat #'identity (make-list notmuch-tag-argument-limit \"x\") \"-\")) (list \"+tag-from-%-large-query\"))"\r
65  output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize)\r
66  test_expect_equal "$output" "thread:XXX   2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-%-large-query unread)"\r
67  notmuch tag -tag-from-%-large-query $os_x_darwin_thread\r
68 -- \r
69 2.6.4\r
70 \r