unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Carl Worth <cworth@cworth.org>
To: Jameson Rollins <jrollins@finestructure.net>,
	Sebastian Spaeth <Sebastian@SSpaeth.de>,
	Anthony Towns <aj@erisian.com.au>,
	notmuch <notmuch@notmuchmail.org>
Subject: Re: [PATCH] notmuch new --new-tags=tags...
Date: Fri, 23 Apr 2010 10:49:29 -0700	[thread overview]
Message-ID: <87sk6mf49i.fsf@yoom.home.cworth.org> (raw)
In-Reply-To: <87y6gseval.fsf@servo.finestructure.net>

[-- Attachment #1: Type: text/plain, Size: 2052 bytes --]

On Mon, 12 Apr 2010 07:59:14 -0400, Jameson Rollins <jrollins@finestructure.net> wrote:
> On Mon, 12 Apr 2010 10:00:37 +0200, "Sebastian Spaeth" <Sebastian@SSpaeth.de> wrote:
> > On 2010-04-10, Anthony Towns wrote:
> > > The attached patch makes "notmuch new --new-tags=unread,new" set the
> > > "unread" and "new" tags on any new mail it finds rather than "unread"
> > > and "inbox". Or whatever other tags you happen to specify.

Thanks very much for the patch, AJ. It's definitely a useful feature.

> > Thanks for the patch. I can't comment on the code quality, but rather
> > than having to specify the set of new tags on the command line every
> > time, I think it would make more sense to put them in the notmuch config
> > file as this patch does:
> > id:1268432006-24333-2-git-send-email-bgamari.foss@gmail.com

I ended up taking that version instead, (using a configuration setting
for this instead of a command-line option to "notmuch new".

One could imagine accepting the command-line option as well, but I don't
think that would actually be useful. Let me know if you disagree.

> I was thinking about this, and it seems to me that we really need is a
> way to just specify which tags should be applied to new messages based
> on search terms.

Yes, I agree.

Many of us are (or will soon be) achieving the feature based on the
following recipe:

  * Configuring new.tags to add a "new" tag.

  * Writing a notmuch-poll script that does the following:

      * Performs "notmuch tag" searches to add tags to "new" messages.

      * Clears the "new" tag from all messages.

  * Configuring notmuch-poll-script inside emacs to invoke our
    notmuch-poll script.

If we added support for configuring search-based tagging directly into
notmuch, then the above recipe could be reduced to a single block of
configuration settings, which sounds much nicer.

So I'll look forward to any implementation to provide that. In the
meantime, we can muddle along with the functionality we want, (but a
little more manual effort to achieve it).

-Carl

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2010-04-23 17:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-10 15:03 [PATCH] notmuch new --new-tags=tags Anthony Towns
2010-04-10 16:11 ` Dirk Hohndel
2010-04-12  8:00 ` Sebastian Spaeth
2010-04-12 11:59   ` Jameson Rollins
2010-04-12 12:25     ` Tomas Carnecky
2010-04-12 13:45       ` Scott Robinson
2010-04-12 15:11     ` Michal Sojka
2010-04-12 15:55       ` Jameson Rollins
2010-04-12 17:15         ` Anthony Towns
2010-04-12 18:03           ` Jameson Rollins
2010-04-23 17:49     ` Carl Worth [this message]

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=87sk6mf49i.fsf@yoom.home.cworth.org \
    --to=cworth@cworth.org \
    --cc=Sebastian@SSpaeth.de \
    --cc=aj@erisian.com.au \
    --cc=jrollins@finestructure.net \
    --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).