(msg)
Queues the passed in message for handling in mailroom
Queues the passed in message for handling in mailroom
Queues the passed in message for handling in mailroom
def queue_msg_handling(msg):
    """
    Queues the passed in message for handling in mailroom
    """

    msg_task = {
        "org_id": msg.org_id,
        "channel_id": msg.channel_id,
        "contact_id": msg.contact_id,
        "msg_id": msg.id,
        "msg_uuid": str(msg.uuid),
        "msg_external_id": msg.external_id,
        "urn": str(msg.contact_urn),
        "urn_id": msg.contact_urn_id,
        "text": msg.text,
        "attachments": msg.attachments,
        "new_contact": False,  # only used by courier
    }

    _queue_handler_task(msg.org_id, msg.contact_id, ContactEvent.MSG, msg_task)
def queue_msg_handling ( msg ) : msg_task = { "org_id" : msg . org_id , "channel_id" : msg . channel_id , "contact_id" : msg . contact_id , "msg_id" : msg . id , "msg_uuid" : str ( msg . uuid ) , "msg_external_id" : msg . external_id , "urn" : str ( msg . contact_urn ) , "urn_id" : msg . contact_urn_id , "text" : msg . text , "attachments" : msg . attachments , "new_contact" : False , # only used by courier } _queue_handler_task ( msg . org_id , msg . contact_id , ContactEvent . MSG , msg_task )