teythoon/afew — Issue #22: static filter rules
Author: pazz
Created: 2011-12-21 21:25:20+00:00
State: open

Hi,
just tried to build custom filters to reflect my static filtering rules. I presume the syntax below is as intended?

```
# global configuration
[global]

# This is the default filter chain
[SpamFilter]
#[ClassifyingFilter]
#[KillThreadsFilter]
[ListMailsFilter]
[ArchiveSentMailsFilter]

[Filter.1]
query = peergroup
tag = +peergroup
message = ****peergroup filter*

[Filter.2]
query = subject:alot
tag = +alot
message = ****alot*****

[InboxFilter]
```
i have a message tagged with new matching the query "is:new AND peergroup", but afew wouldn't tag it according to the
log:

```
pazz@brick:~/projects/afew$ afew -t --new -d -vv
INFO:root:Tagging spam messages
DEBUG:root:Executing query u'(tag:new)'
INFO:root:I would commit changes to 0 messages
INFO:root:Tagging mailing list posts
DEBUG:root:Executing query u'((tag:new)) AND (NOT tag:lists)'
DEBUG:root:Adding tags lists, alot to Justus Winter (inbox new) (2011-12-21)
DEBUG:root:Adding tags lists, peergroup to Daniel Kreischer (inbox killed list new) (2011-12-20)
DEBUG:root:Adding tags lists, peergroup to Sascha Steinbiss (inbox killed list new) (2011-12-19)
DEBUG:root:Adding tags lists, peergroup to Daniel Kreischer (inbox killed list new) (2011-12-19)
INFO:root:I would commit changes to 4 messages
INFO:root:Archiving all mails sent by myself
DEBUG:root:Executing query u'((tag:new)) AND (from:"patricktotzke@gmail.com" OR from:"p.totzke@ed.ac.uk")'
INFO:root:I would commit changes to 0 messages
INFO:root:****peergroup filter*
DEBUG:root:Executing query u'((tag:new)) AND (peergroup)'
INFO:root:I would commit changes to 0 messages
INFO:root:****alot*****
DEBUG:root:Executing query u'((tag:new)) AND (subject:alot)'
INFO:root:I would commit changes to 0 messages

```