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 F333F431FBC; Sat, 21 Nov 2009 13:26:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 UXrhpQDgoUDv; Sat, 21 Nov 2009 13:26:20 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AD935431FAE; Sat, 21 Nov 2009 13:26:19 -0800 (PST) From: Carl Worth To: Keith Packard , Chris Wilson , notmuch@notmuchmail.org In-Reply-To: References: <1258833265-17012-1-git-send-email-chris@chris-wilson.co.uk> Date: Sat, 21 Nov 2009 22:26:07 +0100 Message-ID: <87skc736z4.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Permit opening the notmuch database in read-only mode. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Sat, 21 Nov 2009 21:26:21 -0000 On Sat, 21 Nov 2009 12:06:43 -0800, Keith Packard wrote: > On Sat, 21 Nov 2009 19:54:25 +0000, Chris Wilson wrote: > > > +typedef enum { > > + NOTMUCH_DATABASE_MODE_READONLY = 0, > > + NOTMUCH_DATABASE_MODE_WRITABLE > > +} notmuch_database_mode_t; > > Wondering if MODE_READWRITE would be more descriptive? I went with READ_ONLY and READ_WRITE and pushed this. Thanks, Chris! It's a nice feature. -Carl