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