teythoon/afew — Issue #4: afew should be able to apply tags according to arbitrary rules
Author: 0x64746b
Created: 2011-10-13 10:04:58+00:00
State: open

*iff* afew is meant to be an initial tagging script for notmuch (and I feel like it is meant to be, mainly due to it handling sent mail, killed threads and spam) vs an addon project with classification magic, I think it needs to be able to do some initial tagging ;) i.e. tag new mails according to arbitrary rules. Basically is needs to wrap the functionality of 'notmuch tag'.

I guess people will want to be able to do things like

```
$ notmuch tag +office +inbox -new -- tag new and to:me@office.com
$ notmuch tag +private +inbox -new -- tag new and to:me@gmail.com
```

We probably want to read in a file of tagging rules and pipe them through notmuch - format unknown as of yet ;)
dtk