From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 58D426DE12C2 for ; Sun, 20 Aug 2017 06:48:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.036 X-Spam-Level: X-Spam-Status: No, score=0.036 tagged_above=-999 required=5 tests=[AWL=0.056, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] 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 ja4gxjiY0FqB for ; Sun, 20 Aug 2017 06:48:20 -0700 (PDT) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by arlo.cworth.org (Postfix) with ESMTPS id 58AE56DE1203 for ; Sun, 20 Aug 2017 06:48:20 -0700 (PDT) Received: by mail-lf0-f66.google.com with SMTP id y15so8825270lfd.5 for ; Sun, 20 Aug 2017 06:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=7TAw0HUg/xFqt1xKQ2GvKq4aDM1LDHPHr7crKmndNYQ=; b=iggdpOYmP9wVMozFzVz59K90WMHdcZ5kzDkHP9jkGZPQ1UTpgevAqiwGECHbl6pPFf RTpaLf3fBi3lSGlNiiGiMMaX74UGO6LAxG7g1s3jR1NrZ/1p1lcv/VG4ERHTBLMCFHNY bxZZNOV3SfoZ1i6VYQ6yMqCmlRLlJX7USuMJApKAgrl362XOexHSaWOQNeesGvKWhxY1 0ieg8UJa7tkF+kMzvrwWYm8Y4sGHYlJT48iEvwzzMj1bBBRxsBa6jFGwnHDPQK5SsuG+ jjOIxHsvvuQu/aprYDXu8NTol/vI9EokpvTDGNdTM9+x3Dwwqe0N3SS2h9fdCv+r2Lg6 x8kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=7TAw0HUg/xFqt1xKQ2GvKq4aDM1LDHPHr7crKmndNYQ=; b=T1v5QeslMJYBI3S1NkTBbeZMZiQgCjXjAaurQ64IUe8lR36UX70TlpPTphnTnHUTic oqZn7zz04QrmUvWN3orVxNjxY26BPeVDDnvEwfjIQorZ9rV0hDJQ9WmhTw+++ZNbDZDY ppa8/ckPe7EcmDChAf0akRDfnXy/aPgRwZ3TsRUtEIRy2/TkRYxrU4WFV8zQJyMoTW52 +PR74CK6dwP9T6KtFly0hZU/lzG+b4GybzrZ1EssLPt2An9T0S7w4ESZFQvqeqLFYFfb bJygY/+GHF6lkCBHJZVWEtsg14zMCOWT1pqWpu92bRklKFhi2hKoaj1i8fhu76B7kIBR F5kQ== X-Gm-Message-State: AHYfb5jenWQ/x4MJzaNI2XZ9PYAZ9t+9Eb+esTI8XOOrPblnp4VrgPUx Hs5/c8fqsAgkTmds X-Received: by 10.25.17.23 with SMTP id g23mr4196591lfi.222.1503236898743; Sun, 20 Aug 2017 06:48:18 -0700 (PDT) Received: from localhost (mobile-access-5d6aa6-119.dhcp.inet.fi. [93.106.166.119]) by smtp.gmail.com with ESMTPSA id h22sm1904150ljb.41.2017.08.20.06.48.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Aug 2017 06:48:17 -0700 (PDT) From: Jani Nikula To: David Bremner , Daniel Kahn Gillmor , Matt Armstrong , Gaute Hope , notmuch@notmuchmail.org, Xu Wang Subject: Re: finding incoming messages in threads in which i've participated [was: Re: find threads where I and Jian participated but not Dave] In-Reply-To: <87vank9egp.fsf@tethera.net> References: <87bmprtqgo.fsf@tethera.net> <87fuf1nnl5.fsf@fifthhorseman.net> <8737b1rojw.fsf@tethera.net> <1497594312.ahjx44w937.astroid@strange.none> <87r2ydgh9t.fsf@fifthhorseman.net> <1498111587.9x086zp6wn.astroid@strange.none> <1498112439.apimm1pnum.astroid@strange.none> <87efu8t6ia.fsf@fifthhorseman.net> <87vank9egp.fsf@tethera.net> Date: Sun, 20 Aug 2017 16:48:16 +0300 Message-ID: <87378ml59b.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Sun, 20 Aug 2017 13:48:21 -0000 On Sun, 25 Jun 2017, David Bremner wrote: > Daniel Kahn Gillmor writes: > >> >> For example, would it make sense to have "notmuch new" (and "notmuch >> insert") do "thread-based propagation" of specific tags? for example, >> consider the following (i've just made up the config options): >> >> notmuch config set new.from_self_tags participated >> notmuch config set new.propagate_thread_tags participated >> >> the idea is that "new.from_self_tags" would be applied by "notmuch new" or >> "notmuch insert" if the message was explicitly from: user.primary_email >> or user.other_email. > > At the moment I'm more inclined to work on "doing things right" by > adding xapian documents (database items) for threads. Many of the ideas > in this thread amount to working around their absence. OTOH, it's > certainly true that this last idea (unlike some of the query ideas) > would be relatively straightforward to impliment. I admit I didn't thoroughly read the entire thread... but I think there's an alternative to adding thread documents, with reasonable design, to address the original problem in this thread. Have a new prefix that evaluates to the threads of the sub-query passed as the prefix value, say thread-of: that you could use as part of the query. (Or, make thread: work on queries as well as thread IDs.) The original query in this thread becomes: thread-of:"from:me" and thread-of:"from:jian" and not thread-of:"from:dave". As a side effect, this also makes thread: queries portable across databases via thread-of:"id:". I think this should be doable in current Xapian that supports custom prefix handlers. IIRC the idea was suggested by Austin ages ago. BR, Jani.