def parse(self, email_name, settings):
        emails = fs.email(settings.source, settings.pattern, email_name)
        subject, text, html, last_email = '', '', '', None
        for email in emails:
            logger.info('parsing email %s locale %s', email.name, email.locale)
            template, placeholders, ignored_plceholder_names = reader.read(email.full_path)
            email_subject, email_text, email_html = renderer.render(
                email, template, placeholders, ignored_plceholder_names, settings)
            subject = self._append_content(email.locale, subject, email_subject)
            text = self._append_content(email.locale, text, email_text)
            html = self._append_content(email.locale, html, email_html)
            last_email = email
        if not last_email:
            logger.error('No emails found for given name %s' % email_name)
            return False
        subject = subject + '\n' + self._end_locale_selection
        text = text + '\n' + self._end_locale_selection
        html = html + '\n' + self._end_locale_selection
        email = fs.Email(last_email.name, '', last_email.path, last_email.full_path)
        fs.save(email, subject, text, html, settings.destination)
        return True
dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/clients.py/CustomerIoClient.parse/original