So I released a new product a little while ago, Products.RFC822AddressFieldValidator. It's a validator that checks if the entered data corresponds to a proper mail address field such as To, CC etc. of an email message.
It is very simple at the moment, taking a comma as an address separator and checks if @ is in every of those adresses. I was thinking of using the builtin Archetypes/Plone email validator to check each email address, but wasn't sure exactly what constituted validation as I'm not sure what is returned on valid result (one would think it is something that can evaluate to True..). Which is kind of funny when I think about it.
Anyway, here is the product
http://plone.org/products/Products.RFC822AddressFieldValidat...
It'll be a dependency with Products.MegamanicEditContentTypes which has an email message class for sending out messages from within Plone.
It is very simple at the moment, taking a comma as an address separator and checks if @ is in every of those adresses. I was thinking of using the builtin Archetypes/Plone email validator to check each email address, but wasn't sure exactly what constituted validation as I'm not sure what is returned on valid result (one would think it is something that can evaluate to True..). Which is kind of funny when I think about it.
Anyway, here is the product
http://plone.org/products/Products.RFC822AddressFieldValidat...
It'll be a dependency with Products.MegamanicEditContentTypes which has an email message class for sending out messages from within Plone.