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