From 6de322aff3e1b9c425f6f146d1b9c8f25ebd94d2 Mon Sep 17 00:00:00 2001 From: Danny O'Brien Date: Fri, 5 Dec 2014 13:38:54 +1600 Subject: [PATCH] updating database to remove references to deleted Maildir messages --- 64/9f38fc74e92244b2cd5ffbc66f1f88fd0333e0 | 86 +++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 64/9f38fc74e92244b2cd5ffbc66f1f88fd0333e0 diff --git a/64/9f38fc74e92244b2cd5ffbc66f1f88fd0333e0 b/64/9f38fc74e92244b2cd5ffbc66f1f88fd0333e0 new file mode 100644 index 000000000..a6cd56dc0 --- /dev/null +++ b/64/9f38fc74e92244b2cd5ffbc66f1f88fd0333e0 @@ -0,0 +1,86 @@ +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 22B2E431FD7 + for ; Thu, 4 Dec 2014 13:39:03 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.699 +X-Spam-Level: +X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7] 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 EbhySqsBA78r for ; + Thu, 4 Dec 2014 13:38:58 -0800 (PST) +Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com + [209.85.192.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9F7FF431FC3 + for ; Thu, 4 Dec 2014 13:38:58 -0800 (PST) +Received: by mail-pd0-f181.google.com with SMTP id v10so13237112pde.40 + for ; Thu, 04 Dec 2014 13:38:57 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=sender:date:from:to:subject:message-id:reply-to:mime-version + :content-type:content-disposition:user-agent; + bh=awj5Ym9zr29UPmBlUnKX5oP36Z1fLouiK1W1reUVMPU=; + b=cifxGMkujuud90g1SxIKDZoQnj7+1SRCffX1kayuxlWyVQSLl1c7R/ANKOfSHQid3E + rzAVv5weIPQShqzutfgG9pIILeVysSFdcIhM72+j413mnfeioI1D6cVY3/qvZqw5aFy2 + jLROdRCRq5AjmdxLVeGahRu5CllqOaaJOdDzq1JSuMWzyyRRP9jFUmQZSarnBVnIyw2t + vFHvJCfiX6Ep/fdWXY2Yfl08cEQ7S5oilVRuBDwptRBp665SCzUTbD13or3ZqP4h3wNz + RS9kRRoVXmQTDIL0AQ3BWaeN450hruCUpq+GWJlwDfB9eslnshrZg0U046ZqBvN14iYh + svZw== +X-Received: by 10.69.3.194 with SMTP id by2mr1354876pbd.130.1417729136892; + Thu, 04 Dec 2014 13:38:56 -0800 (PST) +Received: from localhost (ip-64-134-140-30.public.wayport.net. + [64.134.140.30]) by mx.google.com with ESMTPSA id + oz7sm13438251pbb.14.2014.12.04.13.38.55 for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 + Dec 2014 13:38:55 -0800 (PST) +Sender: "Danny O'Brien" +Date: Thu, 4 Dec 2014 13:38:54 -0800 +From: Danny O'Brien +To: notmuch@notmuchmail.org +Subject: updating database to remove references to deleted Maildir messages +Message-ID: <20141204213854.GA15345@spesh.com> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +x-gpg-fingerprint: E1E7 0D6E 64BA 8D1F 74E7 8285 E500 1906 A3FD E45E +User-Agent: Mutt/1.5.23.1 (2014-03-12) +X-Mailman-Approved-At: Thu, 04 Dec 2014 13:57:35 -0800 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +Reply-To: danny@spesh.com +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:39:03 -0000 + +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-spam +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. + +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: + + Error opening /home/danny/mail/missedspam//cur/18403840321.foobar: No such file or directory + +Is there any way I can correct the database to remove these entries? +Notmuch new doesn't seem to spot that they've vanished. + +d. + -- 2.26.2