A quick look in the openobject-server code grepping for email brought several different regular expressions used for the validation and / or extraction of emails. in ir_mail_server.py, tools/mail.py, res_partner.py. There are other regexps in openobject-addons (mail/mail_thread.py, ./crm/wizard/crm_lead_to_opportunity.py,
A quick look in the openobject-server code grepping for email brought several different regular expressions used for the validation and / or extraction of emails. in ir_mail_server.py, tools/mail.py, res_partner.py. There are other regexps in openobject-addons (mail/mail_ thread. py, ./crm/wizard/ crm_lead_ to_opportunity. py,
If you really need to handle email addresses with regexp, please provide a central, not too restrictive regexp (cf. http:// davidcel. is/blog/ 2012/09/ 06/stop- validating- email-addresses -with-regex/) and use this single reference version throughout the code.