Commit fd231590 authored by Ivan Tyagov's avatar Ivan Tyagov

Leave only valid email addresses.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 059b6374
......@@ -111,6 +111,7 @@ New forum post has been created at this url:\n
\n
${url}""" \n
email_body = context.Base_translateString(email_template, mapping={\'url\':discussion_thread.absolute_url()})\n
email_list = filter(lambda x: x not in (None , \'\',) and \'@\' in x, email_list)\n
for email_to in email_list:\n
mail_headers = """\n
To: %s\n
......
79
\ No newline at end of file
80
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment