'Return args for template'

def get_message_details(self):

    settings = frappe.get_doc(u'Daily    Work    Summary    Settings')
    replies = frappe.get_all(u'Communication', fields=[u'content', u'text_content', u'sender'], filters=dict(reference_doctype=self.doctype, reference_name=self.name, communication_type=u'Communication', sent_or_received=u'Received'), order_by=u'creation    asc')
    did_not_reply = self.email_sent_to.split()
    for d in replies:
        emp = frappe.db.get_values(u'Employee', {u'user_id': d.sender}, [u'employee_name', u'image'], as_dict=True)
        d.sender_name = (emp[0].employee_name if emp else d.sender)
        d.image = (emp[0].image if (emp and emp[0].image) else None)
        if (d.sender in did_not_reply):
            did_not_reply.remove(d.sender)
        if d.text_content:
            d.content = markdown(EmailReplyParser.parse_reply(d.text_content))
    did_not_reply = [(frappe.db.get_value(u'Employee', {u'user_id': email}, u'employee_name') or email) for email in did_not_reply]
    return dict(replies=replies, original_message=settings.message, title=_(u'Daily    Work    Summary    for    {0}'.format(global_date_format(self.creation))), did_not_reply=(u',    '.join(did_not_reply) or u''), did_not_reply_title=_(u'No    replies    from'))
