unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jeff Templon <templon@nikhef.nl>
To: Carl Worth <cworth@cworth.org>, David Bremner <david@tethera.net>,
	David Edmondson <dme@dme.org>,
	notmuch@notmuchmail.org
Subject: Re: tell me how to do this (mass tagging of messages)
Date: Thu, 18 Oct 2018 10:37:00 +0200	[thread overview]
Message-ID: <m2bm7r7is3.fsf@simeto.nikhef.nl> (raw)
In-Reply-To: <87pnw8uslk.fsf@wondoo.home.cworth.org>

Hi Carl,

Carl Worth <cworth@cworth.org> writes:

> Meanwhile, at the command line this distinction is made very clear. Try
> each of these commands, for example:
>
> 	notmuch search some-search-pattern
>
> 	notmuch search --output threads some-search-pattern
>
>         notmuch search --output messages some-search-pattern
>
> The second and third options there are very appropriate for generating a
> list of threads (or messages) that you could then iterate over and
> perform operations on.
>
> And of course, if you're wanting to do an operation such as tagging or
> un-tagging, then you can do that at that command-line directly without
> needing an external loop over the results:
>
> 	notmuch tag +some-tag some-search-pattern
>
> 	notmuch tag -some-tag some-search-pattern
>
> Both of these operations will act on matched messages, (no threads are
> involved).
>
> So hopefully playing with the above operations makes it clear how
> notmuch itself is operating.

Thanks for those examples, that does help.

> But again, what operation does notmuch-emacs allow you to do on the
> thread that you are really only wanting to do on the matching messages?

I wish I had made some screenshots of what happened last night - I can't
reproduce the steps involved, but what happened was that some message
got tagged in some unhelpful way (which is a solvable problem, that's
not the point) - the point was that I did some operation that was meant
to remove that "bad tag" and flag it as "inbox" to deal with later, and
what happened was that all the messages in the whole thread (all 45 of
them) got tagged as inbox, which was not the intent.

I guess the point for me is that I frequently search for messages (and
not threads), and when I do so, it's easy for me to forget that actions
taken on the results buffer not only apply to those messages, they can
apply to all messages in threads that happen to contain a matched
message.  

I'll try to capture any examples in the future!

JT

  reply	other threads:[~2018-10-18  8:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-17  8:06 tell me how to do this (mass tagging of messages) Jeff Templon
2018-10-17  9:48 ` Gregor Zattler
2018-10-17  9:58 ` David Edmondson
2018-10-17 11:39   ` Jeff Templon
2018-10-17 13:29     ` David Edmondson
2018-10-17 13:39       ` David Bremner
2018-10-17 14:08         ` Jeff Templon
2018-10-17 22:16           ` Carl Worth
2018-10-18  8:37             ` Jeff Templon [this message]
2018-12-01 16:19               ` Keith Amidon

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=m2bm7r7is3.fsf@simeto.nikhef.nl \
    --to=templon@nikhef.nl \
    --cc=cworth@cworth.org \
    --cc=david@tethera.net \
    --cc=dme@dme.org \
    --cc=notmuch@notmuchmail.org \
    /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).