Improving face customization in notmuch.el
[notmuch-archives.git] / f0 / 6ba99e4e65047da702a2c1872f8594acdee035
1 Return-Path: <too@guru-group.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 E4A6B431FC0\r
6         for <notmuch@notmuchmail.org>; Wed, 25 Mar 2015 12:08:11 -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: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 zDqtLu2ztgTY for <notmuch@notmuchmail.org>;\r
16         Wed, 25 Mar 2015 12:08:08 -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 95240431FBC\r
19         for <notmuch@notmuchmail.org>; Wed, 25 Mar 2015 12:08:08 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id B50E61000F4; Wed, 25 Mar 2015 21:07:46 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH] test/thread-order: continue loop while $parent is number\r
25 Date: Wed, 25 Mar 2015 21:07:40 +0200\r
26 Message-Id: <1427310460-15801-1-git-send-email-tomi.ollila@iki.fi>\r
27 X-Mailer: git-send-email 2.0.0\r
28 Cc: tomi.ollila@iki.fi\r
29 X-BeenThere: notmuch@notmuchmail.org\r
30 X-Mailman-Version: 2.1.13\r
31 Precedence: list\r
32 List-Id: "Use and development of the notmuch mail system."\r
33         <notmuch.notmuchmail.org>\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
35         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
37 List-Post: <mailto:notmuch@notmuchmail.org>\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
41 X-List-Received-Date: Wed, 25 Mar 2015 19:08:12 -0000\r
42 \r
43 Due to possible failure when creating $THREADS data there may\r
44 be no 'None' text in the data. If having 'None' in the data\r
45 is requirement for the loop to terminate the loop may continue\r
46 forever.\r
47 Inverting the test to check positive matches for numbers inhibits\r
48 this particular problem.\r
49 ---\r
50  test/T260-thread-order.sh | 3 ++-\r
51  1 file changed, 2 insertions(+), 1 deletion(-)\r
52 \r
53 diff --git a/test/T260-thread-order.sh b/test/T260-thread-order.sh\r
54 index 99f58336f225..81566e48c98c 100755\r
55 --- a/test/T260-thread-order.sh\r
56 +++ b/test/T260-thread-order.sh\r
57 @@ -45,7 +45,8 @@ for ((n = 0; n < 4; n++)); do\r
58      while read -a parents; do\r
59          references=""\r
60          parent=${parents[$n]}\r
61 -        while [[ $parent != None ]]; do\r
62 +        # require $parent to be 'number' for loop to continue\r
63 +        while [[ $parent =~ ^[0-9]+$ ]]; do\r
64              references="<m$parent@t$thread> $references"\r
65              parent=${parents[$parent]}\r
66          done\r
67 -- \r
68 2.0.0\r
69 \r