From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Matt Armstrong <marmstrong@google.com>,
Gaute Hope <eg@gaute.vetsj.com>,
David Bremner <david@tethera.net>,
notmuch@notmuchmail.org, Xu Wang <xuwang762@gmail.com>
Subject: finding incoming messages in threads in which i've participated [was: Re: find threads where I and Jian participated but not Dave]
Date: Sun, 25 Jun 2017 11:46:21 -0400 [thread overview]
Message-ID: <87efu8t6ia.fsf@fifthhorseman.net> (raw)
In-Reply-To: <qf5wp83wp1h.fsf@google.com>
[-- Attachment #1: Type: text/plain, Size: 2157 bytes --]
Hey all--
I really appreciate the thought and experimentation and research that's
gone into this thread!
On Thu 2017-06-22 17:00:58 -0700, Matt Armstrong wrote:
> # All threads in which I participate get tag:participated
> # 1) Find all threads with a message tagged new
> # (finding all 'today' messages helps during testing,
> # but isn't necessary)
> # 2) Run through "xargs -s 2048 echo" to to group threads
> # lines of about 2K in size.
> # 3) For each line (2) produces, narrow the threads to
> # those containing a message from me.
> # 4) For each such thread, tag every message with +participated.
> notmuch search --output=threads tag:new OR date:today | \
> xargs -s 2048 echo | \
> xargs -I '{}' notmuch search \
> --output=threads from:marmstrong AND \( '{}' \) | \
> sed -e 's,^,+participated -- ,' | \
> notmuch tag --batch
This makes sense to me, modulo the split into 2048-octet lines (magic
numbers make me nervous, though i think i understand why you've included
it).
That said, i've been trying to think lately about how to make notmuch a
tool that's usable by normal humans, who probably won't want to
understand all the moving pieces here. I don't want yet another MUA
that requires you to edit a turing-complete config file to get useful
functionality -- we already have mutt for that :)
Is there a way that we can push this idea/functionality further into
the core of notmuch in a way that makes it easier to use?
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.
and additionally, if a message was inserted into a thread which has any
of the new.propagated_thread_tags applied, the new message would also
get those tags.
What do y'all think?
--dkg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2017-06-25 16:15 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-09 21:55 find threads where I and Jian participated but not Dave Xu Wang
2017-06-13 15:57 ` Xu Wang
2017-06-13 23:31 ` David Bremner
2017-06-14 0:24 ` Xu Wang
2017-06-14 3:32 ` Brian Sniffen
2017-06-15 17:54 ` Daniel Kahn Gillmor
2017-06-15 20:20 ` David Bremner
2017-06-16 1:07 ` Matt Armstrong
2017-06-16 6:28 ` Gaute Hope
2017-06-21 20:04 ` Matt Armstrong
2017-06-21 21:30 ` Daniel Kahn Gillmor
2017-06-22 6:08 ` Gaute Hope
2017-06-22 6:22 ` Gaute Hope
2017-06-23 0:00 ` Matt Armstrong
2017-06-25 15:46 ` Daniel Kahn Gillmor [this message]
2017-06-25 17:14 ` finding incoming messages in threads in which i've participated [was: Re: find threads where I and Jian participated but not Dave] David Bremner
2017-06-26 20:49 ` Matt Armstrong
2017-06-26 23:09 ` David Bremner
2017-08-20 13:35 ` Jani Nikula
2017-08-20 13:48 ` Jani Nikula
2017-08-20 21:32 ` [PATCH] WIP: add thread subqueries David Bremner
2017-08-21 1:35 ` David Bremner
2017-09-07 17:47 ` Gaute Hope
2017-09-07 18:51 ` David Bremner
2017-06-25 17:40 ` finding incoming messages in threads in which i've participated [was: Re: find threads where I and Jian participated but not Dave] Brian Sniffen
2017-06-26 20:54 ` Matt Armstrong
2017-06-22 20:15 ` find threads where I and Jian participated but not Dave Matt Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efu8t6ia.fsf@fifthhorseman.net \
--to=dkg@fifthhorseman.net \
--cc=david@tethera.net \
--cc=eg@gaute.vetsj.com \
--cc=marmstrong@google.com \
--cc=notmuch@notmuchmail.org \
--cc=xuwang762@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).