[PATCH v2 0/5] Add support for specifying tags during "notmuch new"

2014-05-02 Thread Mark Walters

Version 2 passes all tests and LGTM. +1

Best wishes

Mark

On Fri, 02 May 2014, David Edmondson  wrote:
> 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 at notmuchmail.org
>notmuch tag +gnus tag:$KEY and to:ding at 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.
> ___
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH v2 0/5] Add support for specifying tags during "notmuch new"

2014-05-02 Thread David Edmondson
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 at notmuchmail.org
 notmuch tag +gnus tag:$KEY and to:ding at 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.
-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 310 bytes
Desc: not available
URL: 



[PATCH v2 0/5] Add support for specifying tags during notmuch new

2014-05-02 Thread David Edmondson
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:d...@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.


signature.asc
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH v2 0/5] Add support for specifying tags during notmuch new

2014-05-02 Thread Mark Walters

Version 2 passes all tests and LGTM. +1

Best wishes

Mark

On Fri, 02 May 2014, David Edmondson d...@dme.org wrote:
 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:d...@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.
 ___
 notmuch mailing list
 notmuch@notmuchmail.org
 http://notmuchmail.org/mailman/listinfo/notmuch
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch