def send_raw_email(self, source, destinations, raw_data):
        if source not in self.addresses:
            raise MessageRejectedError(
                "Did not have authority to send from email %s" % source
            )

        recipient_count = len(destinations)
        message = email.message_from_string(raw_data)
        for header in 'TO', 'CC', 'BCC':
            recipient_count += sum(
                d.strip() and 1 or 0
                for d in message.get(header, '').split(',')
            )
        if recipient_count > RECIPIENT_LIMIT:
            raise MessageRejectedError('Too many recipients.')

        self.sent_message_count += recipient_count
        message_id = get_random_message_id()
        return RawMessage(message_id)
dataset/ETHPy150Open spulec/moto/moto/ses/models.py/SESBackend.send_raw_email/original