From: David Bremner Date: Wed, 12 Aug 2015 09:38:54 +0000 (+0200) Subject: Re: [PATCH 3/5] cli/count: add --output=modifications X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8eb4e1048a9225c99bbd96f5790787a4324d961f;p=notmuch-archives.git Re: [PATCH 3/5] cli/count: add --output=modifications --- diff --git a/ae/780357d525ab1712502347316044c893ee568d b/ae/780357d525ab1712502347316044c893ee568d new file mode 100644 index 000000000..9d8f3af18 --- /dev/null +++ b/ae/780357d525ab1712502347316044c893ee568d @@ -0,0 +1,73 @@ +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 B06CE6DE119D + for ; Wed, 12 Aug 2015 02:40:03 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.13 +X-Spam-Level: +X-Spam-Status: No, score=0.13 tagged_above=-999 required=5 tests=[AWL=0.130] + 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 mHZBB0ANVWHu for ; + Wed, 12 Aug 2015 02:40:01 -0700 (PDT) +Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224]) + by arlo.cworth.org (Postfix) with ESMTPS id 456796DE0244 + for ; Wed, 12 Aug 2015 02:40:01 -0700 (PDT) +Received: from remotemail by gitolite.debian.net with local (Exim 4.80) + (envelope-from ) + id 1ZPSUx-00028U-HH; Wed, 12 Aug 2015 09:39:03 +0000 +Received: (nullmailer pid 26203 invoked by uid 1000); Wed, 12 Aug 2015 + 09:38:54 -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> + <871tf98y0x.fsf@maritornes.cs.unb.ca> + +User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Wed, 12 Aug 2015 11:38:54 +0200 +Message-ID: <87oaic7snl.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: Wed, 12 Aug 2015 09:40:03 -0000 + +Tomi Ollila writes: + + +> $ notmuch metadata uuid +> $ notmuch metadata lastmod +> $ notmuch metadata uuid lastmod +> $ notmuch metadata lastmod uuid +> +> Now we can bikeshed whether this is good idea -- + +it seems OK. We will have some set of 'fake' metadata keys that are not +actually stored in xapian metadata. Perversely this includes both +lastmod and uuid + +> and what to do (and when) +> if unknown key is used in request... + +Error out, I'd say, but if it's not one of our fake metadata items we +can in general just ask xapian for that value of that metadata, and +complain if it doesn't exist. +