'Process email'

def process_email(self):

    message = self.message
    if message.reply_to:
        user = message.reply_to.author.related_user
        original_author = self.get_original_message_author_email()
        reply_author = self.get_reply_message_author_email()
        if ((not user) and original_author):
            if (message.stream.outgoing_server_username and reply_author):
                if (message.reply_to.author != message.author):
                    fromaddr = ('%s' % original_author)
                    toaddr = ('%s' % reply_author)
                    login = message.stream.outgoing_server_username
                    password = message.stream.outgoing_password
                    body = (self.ticket_record.details + '\r\n\r\n')
                    body += (_('Your    message    is    received    and    a    ticket    is    created,    ticket    reference    is    [%s]') % self.ticket_record.ticket.reference)
                    subject = ('[%s]    %s\r\n\r\n' % (self.ticket_record.ticket.reference, self.ticket_record.ticket.message.title))
                    BaseEmail(message.stream.outgoing_server_name, login, password, fromaddr, toaddr, subject, body).process_email()
