From 1330680fe5428721c53a53cca27dcf35a0d4e704 Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Sat, 3 May 2014 19:57:15 +0100 Subject: [PATCH] Re: folder and path completely broken in HEAD? --- 85/8837a930bb809968433cc44b276b555b71c379 | 128 ++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 85/8837a930bb809968433cc44b276b555b71c379 diff --git a/85/8837a930bb809968433cc44b276b555b71c379 b/85/8837a930bb809968433cc44b276b555b71c379 new file mode 100644 index 000000000..d31d4e6ea --- /dev/null +++ b/85/8837a930bb809968433cc44b276b555b71c379 @@ -0,0 +1,128 @@ +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 46D82431E82 + for ; Sat, 3 May 2014 11:57:37 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.502 +X-Spam-Level: +X-Spam-Status: No, score=0.502 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, 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 CmtshuSstImd for ; + Sat, 3 May 2014 11:57:33 -0700 (PDT) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id D2935431E64 + for ; Sat, 3 May 2014 11:57:32 -0700 (PDT) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1Wgf7d-0001f6-Ik; Sat, 03 May 2014 19:57:27 +0100 +Received: from 5751dfa2.skybroadband.com ([87.81.223.162] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) + (envelope-from ) + id 1Wgf7d-0007R8-8H; Sat, 03 May 2014 19:57:17 +0100 +From: Mark Walters +To: David Mazieres expires 2014-08-01 PDT + , + Jani Nikula +Subject: Re: folder and path completely broken in HEAD? +In-Reply-To: <87iopmonzn.fsf@ta.scs.stanford.edu> +References: <87oazfo3w2.fsf@ta.scs.stanford.edu> <87zjiz8hft.fsf@qmul.ac.uk> + <87iopmonzn.fsf@ta.scs.stanford.edu> +User-Agent: Notmuch/0.15.2+615~g78e3a93 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Sat, 03 May 2014 19:57:15 +0100 +Message-ID: <87ppju4rn8.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 87.81.223.162 +X-QM-Geographic: According to ripencc, + this message was delivered by a machine in Britain (UK) (GB). +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: 2b402357401b55cb326276c6e6662c14 (of first 20000 bytes) +X-SpamAssassin-Score: -0.1 +X-SpamAssassin-SpamBar: / +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -0.1 points. + Summary of the scoring: + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * -0.1 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +Cc: notmuch@notmuchmail.org +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: Sat, 03 May 2014 18:57:37 -0000 + + +Hi + +On Sat, 03 May 2014, dm-list-email-notmuch@scs.stanford.edu wrote: +> Mark Walters writes: +> +>>> All the way back. Now you are saying there will be no convenient way to +>>> match just the "mail.class" part without the year? How very +>>> distressing. Ugh. +>> +>> Hi +>> +>> I am not quite sure what you are meaning by hierarchically group +>> messages. Searching for path:dir/foo/bar/** should give all messages in +>> all directories beneath dir/foo/bar. +> +> The problem is that the maildir++ spec disallows such pathnames. If I +> need compatibility with maildir++ (for instance for an imap server), at +> least on a per-year basis, then my maildirs have to have names like: +> +> 2013/.foo.foo +> 2013/.foo.bar +> 2013/.foo.baz +> 2014/.foo.foo +> 2014/.foo.bar +> 2014/.foo.baz +> +> So if I want a way to aggregate all my foo mail in a single search, +> right now I just ask for folder:foo. Will there be any equivalent in +> the new notmuch? + +I agree with Jani that for 0.18 this won't be possible. However, there +is probably no urgent reason to upgrade (given you know it will cause +you some problems) so the question is can we add some functionality to +cover this use case. Given the way we do the folder matching I think it +unlikely we would want to add globbing/wildcards to the start of a path +(*). + +However, we might be able to support maildir++ as its own prefix. If you +could so searches of the form maildir++:.foo.bar.** which would match +the maildir .foo.bar and all submaildirs++ (eg .foo.bar.a.b etc) would +that be sufficient? + +This wouldn't deal with 2013/.foo.bar but would allow .foo.bar.2013 + +Would this be enough help to make it worth considering? + +Best wishes + +Mark + +(*) if we get a custom parser then it may all be manageable. + -- 2.26.2