[
    {
        "filter": [
            {
                "field": "From",
                "match": "@order.eventbrite.com",
                "mimeType": "message/rfc822",
                "scope": "Ancestors"
            },
            {
                "field": "From",
                "match": "orders@eventbrite.com",
                "mimeType": "message/rfc822",
                "scope": "Ancestors"
            }
        ],
        "function": "fixAddress",
        "mimeType": "text/html",
        "script": "eventbrite.js"
    },
    {
        "filter": [
            {
                "field": "From",
                "match": "@order.eventbrite.com",
                "mimeType": "message/rfc822",
                "scope": "Current"
            },
            {
                "field": "From",
                "match": "orders@eventbrite.com",
                "mimeType": "message/rfc822",
                "scope": "Current"
            }
        ],
        "function": "findBarcode",
        "mimeType": "message/rfc822",
        "script": "eventbrite.js"
    },
    {
        "filter": [
            {
                "match": "^\\d{23,25}$",
                "mimeType": "text/plain",
                "scope": "Descendants"
            }
        ],
        "function": "parsePdf",
        "mimeType": "application/pdf",
        "script": "eventbrite.js"
    },
    {
        "filter": [
            {
                "field": "passTypeIdentifier",
                "match": "pass.eventbrite.ticket",
                "mimeType": "application/vnd.apple.pkpass",
                "scope": "Current"
            }
        ],
        "function": "parsePkPass",
        "mimeType": "application/vnd.apple.pkpass",
        "script": "eventbrite.js"
    }
]