[REVIEW] tools: moved email_split function in emails section, instead of 'somwhere in the file'.
bzr revid: tde@openerp.com-20120828073414-lt4bpubxtv3235b6
This commit is contained in:
parent
f386e2de33
commit
bc5da1a02b
|
@ -395,6 +395,11 @@ def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=Non
|
||||||
cr.close()
|
cr.close()
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
def email_split(text):
|
||||||
|
""" Return a list of the email addresses found in ``text`` """
|
||||||
|
if not text: return []
|
||||||
|
return re.findall(r'([^ ,<@]+@[^> ,]+)', text)
|
||||||
|
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
# SMS
|
# SMS
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue