Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 344D16DE119D for ; Tue, 11 Aug 2015 11:46:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.131 X-Spam-Level: X-Spam-Status: No, score=0.131 tagged_above=-999 required=5 tests=[AWL=0.131] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b9Mf5XIZk8nY for ; Tue, 11 Aug 2015 11:46:26 -0700 (PDT) Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224]) by arlo.cworth.org (Postfix) with ESMTPS id DD7426DE0244 for ; Tue, 11 Aug 2015 11:46:25 -0700 (PDT) Received: from remotemail by gitolite.debian.net with local (Exim 4.80) (envelope-from ) id 1ZPEYB-00082U-Op; Tue, 11 Aug 2015 18:45:27 +0000 Received: (nullmailer pid 23387 invoked by uid 1000); Tue, 11 Aug 2015 18:45:18 -0000 From: David Bremner To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH 3/5] cli/count: add --output=modifications In-Reply-To: References: <1439112285-6681-1-git-send-email-david@tethera.net> <1439112285-6681-4-git-send-email-david@tethera.net> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Tue, 11 Aug 2015 20:45:18 +0200 Message-ID: <871tf98y0x.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 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, 11 Aug 2015 18:46:28 -0000 Tomi Ollila writes: > Currently, `notmuch count` outputs lines that contain just one integer; > this changes this by introducing output with uuid ([0-9a-f-]) and integer > delimited by tab character. > > To put it lightly, this looks "inconsistent" and don't please my aesthetic > eye. > > One option (being it worse or better) could be that by default only > lastmod value is printed and with separate option it is prefixed with > database UUID (in every --output option). Can you think of any use case for the uuid with the other count outputs? It feels pretty artificial to me. Another option is to make a "notmuch metadata" command. I'm not really sure about the syntax, but perhaps a uuid option makes more sense there, so e.g. notmuch metadata --with-uuid lastmod I'm pretty convinced that we need report uuid and lastmod together (at least optionally). I'm less sure we need a full get/set interface for metadata, since people with that use case could use xapian-metadata.