1 Return-Path: <aclements@csail.mit.edu>
\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 1C134431FD5
\r
6 for <notmuch@notmuchmail.org>; Fri, 3 Oct 2014 07:20:00 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 XWSUxXJPR6xl for <notmuch@notmuchmail.org>;
\r
16 Fri, 3 Oct 2014 07:19:52 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id EEAE4431FD8
\r
22 for <notmuch@notmuchmail.org>; Fri, 3 Oct 2014 07:19:31 -0700 (PDT)
\r
23 X-AuditID: 12074423-f799d6d00000337c-fc-542eb0739b19
\r
24 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])
\r
25 (using TLS with cipher AES256-SHA (256/256 bits))
\r
26 (Client did not present a certificate)
\r
27 by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP
\r
28 id F4.B6.13180.370BE245; Fri, 3 Oct 2014 10:19:31 -0400 (EDT)
\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
30 by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s93EJROL020229;
\r
31 Fri, 3 Oct 2014 10:19:28 -0400
\r
32 Received: from drake.dyndns.org
\r
33 (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com
\r
34 [216.15.114.40]) (authenticated bits=0)
\r
35 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
36 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s93EJQbA023389
\r
37 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT);
\r
38 Fri, 3 Oct 2014 10:19:27 -0400
\r
39 Received: from amthrax by drake.dyndns.org with local (Exim 4.84)
\r
40 (envelope-from <aclements@csail.mit.edu>)
\r
41 id 1Xa3hZ-0002KH-C2; Fri, 03 Oct 2014 10:19:21 -0400
\r
42 From: Austin Clements <aclements@csail.mit.edu>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH 10/11] test: Test upgrade to ghost messages feature
\r
45 Date: Fri, 3 Oct 2014 10:19:17 -0400
\r
46 Message-Id: <1412345958-8278-11-git-send-email-aclements@csail.mit.edu>
\r
47 X-Mailer: git-send-email 2.1.0
\r
48 In-Reply-To: <1412345958-8278-1-git-send-email-aclements@csail.mit.edu>
\r
49 References: <1412345958-8278-1-git-send-email-aclements@csail.mit.edu>
\r
50 X-Brightmail-Tracker:
\r
51 H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsUixG6nrlu8QS/EYP03CYvrN2cyOzB6PFt1
\r
52 izmAMYrLJiU1J7MstUjfLoEr4/C/S+wFx7gqujtamRsY33N0MXJySAiYSPRd7mCBsMUkLtxb
\r
53 z9bFyMUhJDCbSWLH1etQzgZGiY3zNjFDOLeZJFa0XoPKLGGU+L7mBStIP5uAvsSKtZPAbBEB
\r
54 aYmdd2cD2RwczAK6Es3tyiBhYQFniScdU5lAbBYBVYkX/5oZQWxeAXeJafebGCHOkJPYsPs/
\r
55 mM0JFL9w9ykbiC0k4Cax6lg32wRG/gWMDKsYZVNyq3RzEzNzilOTdYuTE/PyUot0zfRyM0v0
\r
56 UlNKNzGCw8ZFeQfjn4NKhxgFOBiVeHg/3NANEWJNLCuuzD3EKMnBpCTKW7lYL0SILyk/pTIj
\r
57 sTgjvqg0J7X4EKMEB7OSCO+ClUA53pTEyqrUonyYlDQHi5I476YffCFCAumJJanZqakFqUUw
\r
58 WRkODiUJ3vb1QI2CRanpqRVpmTklCGkmDk6Q4TxAw8FqeIsLEnOLM9Mh8qcYFaXEeR+uA0oI
\r
59 gCQySvPgemFx/YpRHOgVYd4ukHYeYEqA634FNJgJaPA7e12QwSWJCCmpBkYvBoPySO2jVzy+
\r
60 Va9sT/X7dunqrisrziT6tejqvI1I3ZH8/dmHdS5B34on1z7MimV+dnK6W6jj7+Arwb/X3c6t
\r
61 OaGu5cKzNanIJu56yUm/cv1527zKqx999V29OiC30l0oROr/zFeP+WSjrn3X3/WQs9ziV83X
\r
62 yqpNORwMhsvviEX6Taj+sUyJpTgj0VCLuag4EQBvxJvvxgIAAA==
\r
63 Cc: Austin Clements <aclements@csail.mit.edu>
\r
64 X-BeenThere: notmuch@notmuchmail.org
\r
65 X-Mailman-Version: 2.1.13
\r
67 List-Id: "Use and development of the notmuch mail system."
\r
68 <notmuch.notmuchmail.org>
\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
72 List-Post: <mailto:notmuch@notmuchmail.org>
\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
75 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
76 X-List-Received-Date: Fri, 03 Oct 2014 14:20:00 -0000
\r
79 test/T530-upgrade.sh | 21 +++++++++++++++++++++
\r
80 1 file changed, 21 insertions(+)
\r
82 diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh
\r
83 index c4c4ac8..6b42a69 100755
\r
84 --- a/test/T530-upgrade.sh
\r
85 +++ b/test/T530-upgrade.sh
\r
86 @@ -116,4 +116,25 @@ MAIL_DIR/bar/new/21:2,
\r
87 MAIL_DIR/bar/new/22:2,
\r
90 +# Ghost messages are difficult to test since they're nearly invisible.
\r
91 +# However, if the upgrade works correctly, the ghost message should
\r
92 +# retain the right thread ID even if all of the original messages in
\r
93 +# the thread are deleted. That's what we test. This won't detect if
\r
94 +# the upgrade just plain didn't happen, but it should detect if
\r
95 +# something went wrong.
\r
96 +test_begin_subtest "ghost message retains thread ID"
\r
99 +# Get thread ID of real message
\r
100 +thread=$(notmuch search --output=threads id:4EFC743A.3060609@april.org)
\r
101 +# Delete all real messages in that thread
\r
102 +rm $(notmuch search --output=files $thread)
\r
104 +# "Deliver" ghost message
\r
105 +add_message '[subject]=Ghost' '[id]=4EFC3931.6030007@april.org'
\r
106 +# If the ghost upgrade worked, the new message should be attached to
\r
107 +# the existing thread ID.
\r
108 +nthread=$(notmuch search --output=threads id:4EFC3931.6030007@april.org)
\r
109 +test_expect_equal "$thread" "$nthread"
\r