From: Jani Nikula Date: Wed, 12 Jun 2013 11:32:28 +0000 (+0300) Subject: Re: Searching with prefix :folder and --output=files X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3bad06d547a450d3aa68972bbe80451414c0a00;p=notmuch-archives.git Re: Searching with prefix :folder and --output=files --- diff --git a/a8/2e3e9f9c3483b1ca1bc46d98664ca50d419557 b/a8/2e3e9f9c3483b1ca1bc46d98664ca50d419557 new file mode 100644 index 000000000..928723a80 --- /dev/null +++ b/a8/2e3e9f9c3483b1ca1bc46d98664ca50d419557 @@ -0,0 +1,98 @@ +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 223A1431FC7 + for ; Wed, 12 Jun 2013 04:32:53 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +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 DkRhxE9h8qOA for ; + Wed, 12 Jun 2013 04:32:45 -0700 (PDT) +Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com + [209.85.217.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 13EA4431FBC + for ; Wed, 12 Jun 2013 04:32:44 -0700 (PDT) +Received: by mail-lb0-f173.google.com with SMTP id v1so3646428lbd.18 + for ; Wed, 12 Jun 2013 04:32:43 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type:x-gm-message-state; + bh=6RTOhOpV/aIpSNGRB6GbO4MuATFBMuEXEW2AnZSBBvA=; + b=LDiOQUmTduU9PaPHrK4GGQDwkfGJCt7o/n+gxOFIyyJPckyKDsak0UtGOZKZ2YzBYZ + Nn/CiaCsTUMqBPZhxRUvkMwBEtrdLMowt2YtD3wMiO+qJHvpeIv36iYBxkiNr1DYJUn5 + 7n3NiYS6FjlIHySEMJXhUWC+/akrNit8+zXClKqCCLdp7VeTlroO7Eqs9JmiQcBHBLCW + lfKa40uDsKsR8ElUDZmq/j+NRqGJUMkQw8KrKQleA9PrVnOuIVbSy6zmNctE6csjS3RY + pgTCo+6b2Fkd8MxusLpbUlVIFM0YCiNRodmV00ahWCd0O19gJdNNyllgRp3UcyGfqnqr + hwkg== +X-Received: by 10.112.219.68 with SMTP id pm4mr10968626lbc.10.1371036760994; + Wed, 12 Jun 2013 04:32:40 -0700 (PDT) +Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi. + [88.195.118.211]) + by mx.google.com with ESMTPSA id p6sm8945452lbv.15.2013.06.12.04.32.34 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Wed, 12 Jun 2013 04:32:39 -0700 (PDT) +From: Jani Nikula +To: Mark Walters , + Nathan Clapham , notmuch@notmuchmail.org +Subject: Re: Searching with prefix :folder and --output=files +In-Reply-To: <87k3lz90k3.fsf@qmul.ac.uk> +References: <20130611213424.GA5028@Nathans-MacBook-Air.local> + <87k3lz90k3.fsf@qmul.ac.uk> +User-Agent: Notmuch/0.15.2+176~g6432957 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Wed, 12 Jun 2013 14:32:28 +0300 +Message-ID: <87zjuv5zub.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain +X-Gm-Message-State: + ALoCoQl1QUm09y1a72pUvekWD3Xl51c3DT/lVPkDb0CE95tLRNrdlhmRKX+DPINcQM29SJiH+OkP +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: Wed, 12 Jun 2013 11:32:53 -0000 + +On Wed, 12 Jun 2013, Mark Walters wrote: +> First notmuch finds all the *messages* that match your query (ie +> which have an associated filename matching the folder: part of your +> query) and then it returns all filenames for these messages. + +I recently sent patches to clarify the man pages a bit while adding a +new feature to the cli: + +http://mid.gmane.org/1370881897-3386-1-git-send-email-jani@nikula.org +http://mid.gmane.org/1370881714-3303-1-git-send-email-jani@nikula.org + +> I think that notmuch views a message (as determined by a message-id) as +> a single object in its database (it assumes that all copies are +> identical) so fixing this would not be easy. + +Assuming any fixing is needed, that is. One would assume any notmuch +search --output=files *without* the folder: prefix would return all +files for all matching messages. I think it would be rather confusing if +the folder: prefix modified that. + +Like Mark said, the most important thing to understand is that all +notmuch searches match messages. The --output option just modifies how +those matching messages are presented; it does not affect what is +searched for at all. + +BR, +Jani.