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 F3F9B42119B for ; Thu, 30 Jun 2011 10:54:15 -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 ycOxF72684mA for ; Thu, 30 Jun 2011 10:54:15 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4F15142118E for ; Thu, 30 Jun 2011 10:54:15 -0700 (PDT) Received: by wyh22 with SMTP id 22so1913738wyh.26 for ; Thu, 30 Jun 2011 10:54:14 -0700 (PDT) Received: by 10.227.32.69 with SMTP id b5mr2071390wbd.99.1309456453917; Thu, 30 Jun 2011 10:54:13 -0700 (PDT) Received: from localhost ([109.131.21.173]) by mx.google.com with ESMTPS id gb1sm1792496wbb.54.2011.06.30.10.54.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Jun 2011 10:54:13 -0700 (PDT) From: Pieter Praet To: Carl Worth , notmuch@notmuchmail.org Subject: Re: [PATCH] remove prefixes from `--output={threads, messages}' results In-Reply-To: <871uyb479v.fsf@yoom.home.cworth.org> References: <877hbiep5g.fsf@SSpaeth.de> <1309421989-22410-1-git-send-email-pieter@praet.org> <871uyb479v.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.5-315-g34bd5eb (http://notmuchmail.org) Emacs/23.1.50.1 (x86_64-pc-linux-gnu) Date: Thu, 30 Jun 2011 19:54:10 +0200 Message-ID: <87fwmrdx31.fsf@praet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Thu, 30 Jun 2011 17:54:16 -0000 On Thu, 30 Jun 2011 09:24:12 -0700, Carl Worth wrote: Non-text part: multipart/signed > On Thu, 30 Jun 2011 10:19:49 +0200, Pieter Praet wrote: > > Alter `do_search_threads()' and `do_search_messages()' > > to not prepend each result with `thread:' respectively `id:'. > > My one concern here is that I've sometimes had a message-id without the > id prefix and run a command like this: > > notmuch search 1309421989-22410-1-git-send-email-pieter@praet.org > > And I've gotten confused when I've received no output, (didn't I receive > that mail? what happened?). And unfortunately, that's not the only concern. While this patch removes a mere 10 chars, it has (way too) far-reaching consequences, not only for the test suite, but for the entire codebase. Truth be told, this was never intended to be merged. I only sent this patch to give a ~fair chance to what appears to be the general consensus, but I much prefer the fix for do_search_tags() [1]. In fact, all the followup patches (the seemingly haphazard reply nesting is intentional) are intended to be used with the do_search_tags() fix, which I tentatively consider a much cleaner path. > But I think this is a separate bug where the right fix is to make any > search terms with no prefix search through *all* prefixed terms > generated from email content. This would allow us to also avoid indexing > some content twice, (currently we store subject, from, and to both with > a prefix and without a prefix). Indeed a most desirable (albeit perhaps long-term) goal. Much as I'd like, I won't be able to make myself useful in that area for the time being, as the only C I consider myself sufficiently capable of pushing around is the one ending with "offee" :< > -Carl > > -- > carl.d.worth@intel.com Non-text part: application/pgp-signature Peace -- Pieter [1] id:"1309422029-22924-1-git-send-email-pieter@praet.org"