teythoon/afew — Issue #19: Generalize List-Id regex
Author: kazuoteramoto
Created: 2011-12-04 23:43:20+00:00
State: open

Some of my lists (vim_use, vim_dev) have _ in the list name like this:

`List-ID: `

The ListMailsFilter.py regex `'[a-z0-9-]+'` fail to recognize the list id and don't tag it because the "_".

The List-Id header is define on [rfc2919] [rfc2919] and the dot-atom-text on [rfc2822] [rfc2822].

I think that when can include the characters define as atext (defined on [rfc2822] [rfc2822]) and use `"[a-zA-Z0-9!#$%&'*+-/=?^_`{|}~]"` in the regex and we can remove the @ as @ can't be present.

Or implement the grammar that define List-Id so is tagged with vim.use

What you think?

[rfc2919]: http://www.ietf.org/rfc/rfc2919.txt
[rfc2822]: http://www.ietf.org/rfc/rfc2822.txt