teythoon/afew — pull request #45 by foobacca (2013-03-24 21:59:35+00:00)
Title: Add RegexFilter

The RegexFilter can work on any line of the header, and add tags based
on a group in the regex. The ListMailsFilter is now based on it.

A use case is email sent to XYZ-team@example.com. You could do:

[RegexFilter.1]
header_field = To
regex_string = (?P[a-z0-9]+)-team@example.org
regex_group = team_name