From: David Edmondson <dme@dme.org>
To: notmuch@notmuchmail.org
Subject: [PATCH v2 0/5] Add support for specifying tags during "notmuch new"
Date: Fri, 02 May 2014 13:11:30 +0100 [thread overview]
Message-ID: <cuniopogz2l.fsf@hotblack-desiato.hh.sledj.net> (raw)
In-Reply-To: <1399018555-1994-1-git-send-email-dme@dme.org>
[-- Attachment #1: Type: text/plain, Size: 943 bytes --]
v1:
This patch set allows a user to specify a list of tags to be
added/removed to messages discovered during "notmuch new".
Two use-cases are envisaged:
1) A chunk of messages was just dumped into the configured
directory by hand, and the user doesn't want the 'inbox' tag
applied to them. Run 'notmuch new -inbox'.
2) A periodic mail processing script wants to add new messages to
the database, then process those newly added messages to add
convenience tags, etc. without worrying about the user or other
instances of the script manipulating tags at the same time. Use
this approach:
KEY=$RANDOM
notmuch new +$KEY
notmuch tag +notmuch tag:$KEY and to:notmuch@notmuchmail.org
notmuch tag +gnus tag:$KEY and to:ding@gnus.org
...
notmuch tag -$KEY tag:$KEY
v2: The first version synced tags to flags rather than the other way
around. Thanks to Mark for complaining at me.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 310 bytes --]
next prev parent reply other threads:[~2014-05-02 12:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 8:15 Add support for specifying tags during "notmuch new" David Edmondson
2014-05-02 8:15 ` [PATCH 1/5] notmuch-new: Use tag_op_list_apply() rather than hand-coding the same David Edmondson
2014-05-02 8:15 ` [PATCH 2/5] notmuch-new: Allow the tags of new messages to be manipulated David Edmondson
2014-05-02 8:15 ` [PATCH 3/5] notmuch-new: Manual: Add command line tags David Edmondson
2014-05-02 8:15 ` [PATCH 4/5] NEWS: Add information about "notmuch new" " David Edmondson
2014-05-02 8:15 ` [PATCH 5/5] Test: Add tests for " David Edmondson
2014-05-02 12:11 ` David Edmondson [this message]
2014-05-02 12:14 ` [PATCH 1/5] notmuch-new: Use tag_op_list_apply() rather than hand-coding the same David Edmondson
2014-05-02 12:14 ` [PATCH 2/5] notmuch-new: Allow the tags of new messages to be manipulated David Edmondson
2014-05-02 12:14 ` [PATCH 3/5] notmuch-new: Manual: Add command line tags David Edmondson
2014-05-02 12:14 ` [PATCH 4/5] NEWS: Add information about "notmuch new" " David Edmondson
2014-05-02 12:14 ` [PATCH 5/5] Test: Add tests for " David Edmondson
2014-05-02 14:07 ` [PATCH v2 0/5] Add support for specifying tags during "notmuch new" Mark Walters
2014-05-02 15:18 ` Austin Clements
2014-05-02 15:32 ` David Edmondson
2014-07-12 19:08 ` David Bremner
2014-07-13 3:40 ` Austin Clements
2014-07-13 11:58 ` David Bremner
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=cuniopogz2l.fsf@hotblack-desiato.hh.sledj.net \
--to=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).