'Cleanup list of emails'

def validate_emails(self):

    if (u',' in self.email_to):
        self.email_to.replace(u',', u'\n')
    valid = []
    for email in self.email_to.split():
        if email:
            frappe.utils.validate_email_add(email, True)
            valid.append(email)
    self.email_to = u'\n'.join(valid)
