Re: updating database to remove references to deleted Maildir messages
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 4 Dec 2014 21:59:48 +0000 (16:59 +1900)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:46:55 +0000 (14:46 -0700)
5a/61df4b7403c97be1f60c813f3a16f2d200e080 [new file with mode: 0644]

diff --git a/5a/61df4b7403c97be1f60c813f3a16f2d200e080 b/5a/61df4b7403c97be1f60c813f3a16f2d200e080
new file mode 100644 (file)
index 0000000..dde154e
--- /dev/null
@@ -0,0 +1,113 @@
+Return-Path: <dkg@fifthhorseman.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2E97D431FDF\r
+       for <notmuch@notmuchmail.org>; Thu,  4 Dec 2014 13:59:59 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id l9AUGlH+dPCM for <notmuch@notmuchmail.org>;\r
+       Thu,  4 Dec 2014 13:59:53 -0800 (PST)\r
+Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8F3C8431FDE\r
+       for <notmuch@notmuchmail.org>; Thu,  4 Dec 2014 13:59:53 -0800 (PST)\r
+Received: from [10.70.10.152] (unknown [38.109.115.130])\r
+       by che.mayfirst.org (Postfix) with ESMTPSA id BA49FF984;\r
+       Thu,  4 Dec 2014 16:59:47 -0500 (EST)\r
+Message-ID: <5480D954.6000803@fifthhorseman.net>\r
+Date: Thu, 04 Dec 2014 16:59:48 -0500\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+User-Agent: Mozilla/5.0 (X11; Linux x86_64;\r
+       rv:34.0) Gecko/20100101 Icedove/34.0\r
+MIME-Version: 1.0\r
+To: danny@spesh.com, notmuch@notmuchmail.org\r
+Subject: Re: updating database to remove references to deleted Maildir\r
+ messages\r
+References: <20141204213854.GA15345@spesh.com>\r
+In-Reply-To: <20141204213854.GA15345@spesh.com>\r
+Content-Type: multipart/signed; micalg=pgp-sha512;\r
+       protocol="application/pgp-signature";\r
+       boundary="bEA9OHgf2P94apVDdW93eOOVwLfMf1VVi"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 04 Dec 2014 21:59:59 -0000\r
+\r
+This is an OpenPGP/MIME signed message (RFC 4880 and 3156)\r
+--bEA9OHgf2P94apVDdW93eOOVwLfMf1VVi\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On 12/04/2014 04:38 PM, Danny O'Brien wrote:\r
+> I use notmuch with a set of Maildirs, synchronised with a remote IMAP\r
+> instance using mbsync. One of the folders I sync with is a "missed spam=\r
+"\r
+> directory, which is used by the remote server to correct its own anti-s=\r
+pam\r
+> system. The server deletes the missed spam messages after it has added\r
+> them to its corpus of spam, which means that messages are regularly\r
+> deleted from that folder.\r
+>=20\r
+> My impression is that notmuch is pretty smart about spotting messages\r
+> that have disappeared, but when I do notmuch show etc these days it\r
+> often comes up with a list of missing files, a la:\r
+>=20\r
+>     Error opening /home/danny/mail/missedspam//cur/18403840321.foobar: =\r
+No such file or directory\r
+>=20\r
+> Is there any way I can correct the database to remove these entries?\r
+> Notmuch new doesn't seem to spot that they've vanished.\r
+\r
+maybe mbsync is fiddling with the timestamps on the directories somehow?\r
+\r
+have you tried:\r
+\r
+ touch /home/danny/mail/missedspam/cur\r
+ notmuch new\r
+\r
+?\r
+\r
+       --dkg\r
+\r
+\r
+--bEA9OHgf2P94apVDdW93eOOVwLfMf1VVi\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: OpenPGP digital signature\r
+Content-Disposition: attachment; filename="signature.asc"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2\r
+\r
+iQJ8BAEBCgBmBQJUgNlUXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w\r
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw\r
+MDAwMDAwMDAwMDAwMDAwAAoJEKUkAbEb/fpca0kQALwZ9eYRuwAj6PcXS+DJJcbe\r
+NOcKZjQgBpfzxC41T553hiN7JWSvpR9F/ejsJat6IgbO6Twndp6M4xEQJWzrHRBO\r
+gkrX/cXGS7FetDoEje43kQv2tbUTTXWX7Zl0hX7G/aFjlx8LvoOHWTCFWhXl19hi\r
+h06xmwV3oabZyaMUIw0AqkuflyyBbraLQg3HAi8CX9jXqhnbwPFuyh2TkCNxdnEw\r
+XfZHoRDUTqOYQ1aTb+poY4NBIAp8RZ/DDdcNEUKotuNwhdYJGbEfm2VKjFhy4Yms\r
+hKfWYuSFN+o9EkewTd4bwisilNBxjie7+LWA8ok59IHwXI4o5K/fvVuriXQ+j/ev\r
+ip0KLln1uCJ1bDCqciOnDkms/1htrEUeSfT9o47WPSy2hKsUdxNrF2IpHbtAklif\r
+j33OHDKd0fO9ixPaT3v6ftp1qPNnNRF9OzjE2xZJYybJQCFhRVHq960fNSPrVr2b\r
+Cyur9nVNGxjYFjlIYZln+Ikc/F/i4NLOxfc3bNkYhT4b6HioktunuUgRHWeVYm1A\r
+/pdlODezCgt9ZjnRtAozXLS1HDiE8Dwy4GGIKd/h13lA+Svvf1U0Z6V94pc9RcIv\r
+xnWuPD2FpMYDv0TsbA5aBhN+uabvDI+hipoAv6aycNQrpBRGMTs+bOKfVkyvwnyK\r
+SyQCXHxU2I5jM52xZyhj\r
+=2/YB\r
+-----END PGP SIGNATURE-----\r
+\r
+--bEA9OHgf2P94apVDdW93eOOVwLfMf1VVi--\r