--- /dev/null
+Return-Path: <chris@chrisdown.name>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 659CD6DE02A9\r
+ for <notmuch@notmuchmail.org>; Tue, 22 Mar 2016 10:15:23 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.821\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.821 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id D3mOoA4-rrz0 for <notmuch@notmuchmail.org>;\r
+ Tue, 22 Mar 2016 10:15:15 -0700 (PDT)\r
+Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com\r
+ [74.125.82.41]) by arlo.cworth.org (Postfix) with ESMTPS id B897F6DE0217 for\r
+ <notmuch@notmuchmail.org>; Tue, 22 Mar 2016 10:15:14 -0700 (PDT)\r
+Received: by mail-wm0-f41.google.com with SMTP id l68so162821656wml.0\r
+ for <notmuch@notmuchmail.org>; Tue, 22 Mar 2016 10:15:14 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=chrisdown.name; s=google;\r
+ h=date:from:to:subject:message-id:mime-version:content-disposition\r
+ :user-agent; bh=iwqDKZCTs0Wut8H0Djr54yDYNa9oOnSwbIaBjHo6nsY=;\r
+ b=HT67EgfLS5fl3nVKwB/TIZOVGgs2VEYKrUoGe5szoz9B6r7WXQkw+0SkBIbMx4f9HW\r
+ GRo7qizG/M9ApEH3cbVP4yBmjDJw7teJiFUxGBgs3BaCHpJeejNvK4+V5rulp2omEKU7\r
+ soZpxlQMOkH8aUaIcKEGh8MLJjzUS5B1g3PX0=\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:date:from:to:subject:message-id:mime-version\r
+ :content-disposition:user-agent;\r
+ bh=iwqDKZCTs0Wut8H0Djr54yDYNa9oOnSwbIaBjHo6nsY=;\r
+ b=Cc06aqiLQXBisQxLe3Bj02eiblj5O1IoS+QQeiZtd6SCmlM5GEcAN7dfrkfma3yxS7\r
+ kgv7UgkKyF0ErIaKjN4COAE3yd3HgYQUcZq/yvm85y0WPfX8Pm9OmZUOljenULld8z8x\r
+ dpNWuJhnU/GbFVU6Iq7Lmi1lLItFDyRvGPmujzOgureaQiN964Eph8RH2Oa7ePrYCJNR\r
+ bocPigNOClixtcUn61Ga2bV0mZmx0qyvDpAKyELzwJ7GqCi79CkyS6wOY5NsUPt3iQcs\r
+ +M+VOn2sxIq0sFcoyXPFDl1O/fwpp+Cph4NoSHtiSGw4/SEve3T/zCwfr988CSNOkUCk\r
+ mAdg==\r
+X-Gm-Message-State:\r
+ AD7BkJJAHiQVXKciIi1RoUGHNI5BnicmdXsdM3v1q+eTro/CX2LQKDAviVhZE0jTS2Cq32n0\r
+X-Received: by 10.194.81.103 with SMTP id z7mr36974231wjx.25.1458666910635;\r
+ Tue, 22 Mar 2016 10:15:10 -0700 (PDT)\r
+Received: from localhost ([2620:10d:c092:200::1:592c])\r
+ by smtp.gmail.com with ESMTPSA id o128sm18228208wmb.19.2016.03.22.10.15.09\r
+ for <notmuch@notmuchmail.org> (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Tue, 22 Mar 2016 10:15:09 -0700 (PDT)\r
+Date: Tue, 22 Mar 2016 17:15:09 +0000\r
+From: Chris Down <chris@chrisdown.name>\r
+To: notmuch@notmuchmail.org\r
+Subject: "The revision being read has been discarded - you should call\r
+ Xapian::Database::reopen() and retry the operation"\r
+Message-ID: <20160322171509.GA2233@chrisdown.name>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii; format=flowed\r
+Content-Disposition: inline\r
+User-Agent: Mutt/1.5.24 (2015-08-30)\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 22 Mar 2016 17:15:23 -0000\r
+\r
+Hey all,\r
+\r
+This morning it seems both instances of notmuch-mutt I use (two different \r
+config files, two different databases) are showing the following error:\r
+\r
+> A Xapian exception occurred opening database: The revision being read has \r
+> been discarded - you should call Xapian::Database::reopen() and retry the \r
+> operation\r
+\r
+This error seems to totally fatal notmuch, since no mail is returned in the \r
+temporary folder.\r
+\r
+There were some package upgrades this morning that seem potentially relevant:\r
+\r
+ % pacman -Qi notmuch-mutt | grep Depends\r
+ Depends On : notmuch-runtime perl-mailtools perl-mail-box perl-term-readline-gnu perl-string-shellquote perl-file-which\r
+ % grep 2016-03-22 /var/log/pacman.log | grep -E 'notmuch|perl-mail|perl-term|perl-string|perl-file-which'\r
+ [2016-03-22 09:49] [ALPM] upgraded perl-file-which (1.18-1 -> 1.21-1)\r
+ [2016-03-22 09:49] [ALPM] upgraded perl-term-readline-gnu (1.28-1 -> 1.31-1)\r
+\r
+Trying to downgrade these is a no-go, however, because the upgrade this morning \r
+also upgraded Perl, and the old versions of these scripts refuse to work with \r
+the new version of Perl (lots of "use of uninitialised value" spam).\r
+\r
+After looking around for information about this error, it seems it can also \r
+mean that the Xapian database is corrupted. Since this is happening on two \r
+different databases, it seems interesting that the corruption would happen in \r
+exactly the same way on both. Is there some way to verify the existence or \r
+non-existence of database corruption in a Xapian database that I could try?\r
+\r
+Thanks,\r
+\r
+Chris\r