Hi all. Im trying to develop yet another email filter. Just for fun for 
now. Im having a little trouble parsing long 'To' and 'Cc' headers. 
Sometimes p.e. the 'To' header comes like

'[EMAIL PROTECTED], [EMAIL PROTECTED]'
others comes like
'"My self" <[EMAIL PROTECTED]>, "My brother" <[EMAIL PROTECTED]>',
other times a \r\t comes inside the `To' header. And any combination of 
the above mentioned (and shurely more) can ocur.

the email.* package dont seems to parse that kind of headers 
`correctly'. What i want is to get a list with all the email address in 
the `To' header.

Someone know if there is a more sofisticated parser for doing this?

Thanks!
Gerardo
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to