Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 8a / 95f4226663c1ba37d0fb678b30f85785aab129
1 Return-Path: <dkg@fifthhorseman.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 5A5336DE178F\r
6  for <notmuch@notmuchmail.org>; Fri, 15 Jan 2016 11:26:05 -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.024\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.024 tagged_above=-999 required=5\r
12  tests=[AWL=-0.024] 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 dD6FxVVquXKn for <notmuch@notmuchmail.org>;\r
16  Fri, 15 Jan 2016 11:26:03 -0800 (PST)\r
17 Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
18  by arlo.cworth.org (Postfix) with ESMTP id A48BF6DE0A87\r
19  for <notmuch@notmuchmail.org>; Fri, 15 Jan 2016 11:26:03 -0800 (PST)\r
20 Received: from fifthhorseman.net (unknown [38.109.115.130])\r
21  by che.mayfirst.org (Postfix) with ESMTPSA id 47067F984\r
22  for <notmuch@notmuchmail.org>; Fri, 15 Jan 2016 14:26:01 -0500 (EST)\r
23 Received: by fifthhorseman.net (Postfix, from userid 1000)\r
24  id 1250320000; Fri, 15 Jan 2016 11:26:01 -0800 (PST)\r
25 From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
26 To: notmuch@notmuchmail.org\r
27 Subject: Re: Bug report: undeletable traces of ghosts in the notmuch database\r
28 In-Reply-To: <87twmf7t8k.fsf@alice.fifthhorseman.net>\r
29 References: <87twmf7t8k.fsf@alice.fifthhorseman.net>\r
30 User-Agent: Notmuch/0.21+66~g8c19a9a (http://notmuchmail.org) Emacs/24.5.1\r
31  (x86_64-pc-linux-gnu)\r
32 Date: Fri, 15 Jan 2016 14:26:01 -0500\r
33 Message-ID: <87y4bq63w6.fsf@alice.fifthhorseman.net>\r
34 MIME-Version: 1.0\r
35 Content-Type: multipart/mixed; boundary="=-=-="\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.20\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40  <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
42  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
47  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Fri, 15 Jan 2016 19:26:05 -0000\r
49 \r
50 --=-=-=\r
51 Content-Type: text/plain\r
52 \r
53 On Thu 2016-01-14 16:20:59 -0500, Daniel Kahn Gillmor wrote:\r
54 > This suggests that if i include a bogus message-id in my References:\r
55 > list for any mail i send to a notmuch user, then access to their\r
56 > database will let me tell whether they ever saw it or not, regardless of\r
57 > whether they deleted the message.\r
58 \r
59 The script below demonstrates the problem.\r
60 \r
61 before the message is added and removed, delve -a shows:\r
62 \r
63 ----------------------\r
64 All terms in database:\r
65 ----------------------\r
66 \r
67 but afterward, it shows:\r
68 \r
69 ----------------------\r
70 All terms in database: G0000000000000001 Qno-such-message@example.org Tghost XDDIRENTRY2:new XDIRECTORY XDIRECTORYnew\r
71 ----------------------\r
72 \r
73     --dkg\r
74 \r
75 \r
76 --=-=-=\r
77 Content-Type: text/x-sh\r
78 Content-Disposition: inline; filename=demonstrate-ghost-leak\r
79 \r
80 #!/bin/bash -x\r
81 \r
82 workdir="$(mktemp -d)"\r
83 export NOTMUCH_CONFIG="${workdir}/.notmuch-config"\r
84 mkdir -p "${workdir}"/messages/{cur,tmp,new}\r
85 \r
86 cat >$NOTMUCH_CONFIG <<EOF\r
87 [database]\r
88 path=$workdir/messages\r
89 EOF\r
90 \r
91 notmuch new\r
92 delve -a $workdir/messages/.notmuch/xapian\r
93 \r
94 cat >"${workdir}"/messages/new/test-message.eml <<EOF\r
95 From: alice@example.org\r
96 To: bob@example.org\r
97 Date: Fri, 15 Jan 2016 14:16:46 -0500\r
98 Subject: a test message\r
99 References: <no-such-message@example.org>\r
100 Message-ID: <12345@example.org>\r
101 Content-Type: text/plain\r
102 \r
103 This is a test message\r
104 EOF\r
105 \r
106 notmuch new\r
107 delve -a $workdir/messages/.notmuch/xapian\r
108 \r
109 rm -f "${workdir}"/messages/new/test-message.eml\r
110 \r
111 notmuch new\r
112 delve -a $workdir/messages/.notmuch/xapian\r
113 \r
114 --=-=-=--\r