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 C0AEF431FBC for ; Tue, 19 Jan 2010 00:55:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.411 X-Spam-Level: X-Spam-Status: No, score=-0.411 tagged_above=-999 required=5 tests=[AWL=-0.412, BAYES_50=0.001] autolearn=ham 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 9R7otTfylqmR for ; Tue, 19 Jan 2010 00:55:05 -0800 (PST) Received: from homiemail-a17.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id 212BF431FAE for ; Tue, 19 Jan 2010 00:55:05 -0800 (PST) Received: from sspaeth.de (mtec-hg-docking-2-dhcp-062.ethz.ch [82.130.121.62]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id 0B9CF7A805C; Tue, 19 Jan 2010 00:55:02 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Tue, 19 Jan 2010 09:55:00 +0100 From: "Sebastian Spaeth" To: notmuch@notmuchmail.org Date: Tue, 19 Jan 2010 09:55:00 +0100 Message-ID: <87fx62wk2j.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] xapian errors and notmuch return codes 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: Tue, 19 Jan 2010 08:55:06 -0000 When I perform a "notmuch search" while notmuch is updating tags in a different shell, I get: "A Xapian exception occurred performing query: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation" but the notmuch return code is still "0" (indicating success?!). It would be great to have a return code reflect the validity of returned results, especially when the main means of interacting are piping from the notmuch app at the moment. Also, could the "man" page indicate which return codes notmuch delivers in which cases? I would find that pretty helpful. Sorry for not delivering patches, but I think there was a patch for return codes on the list recently. Sebastian