Products.RFC822AddressFieldValidator - A sparse beginningSo 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
It'll be a dependency with Products.MegamanicEditContentTypes which has an email message class for sending out messages from within Plone.
[Later: updated to fix feed errors]
[Permalink] [By morphex] [Python, Zope, Plone - and anything loosely related to that (Atom feed)] [2012 25 Apr 12:07 GMT+2]