[
    {
        "filter": [
            {
                "field": "carrierId",
                "match": "80",
                "mimeType": "internal/uic9183",
                "scope": "Descendants"
            },
            {
                "field": "issuerId",
                "match": "6260",
                "mimeType": "internal/vdv",
                "scope": "Descendants"
            }
        ],
        "function": "parsePdf",
        "mimeType": "application/pdf",
        "script": "deutschebahn.js"
    },
    {
        "filter": [
            {
                "field": "From",
                "match": "buchungsbestaetigung@bahn.de",
                "mimeType": "message/rfc822",
                "scope": "Ancestors"
            },
            {
                "field": "From",
                "match": "noreply@deutschebahn.com",
                "mimeType": "message/rfc822",
                "scope": "Ancestors"
            }
        ],
        "function": "parseReservation",
        "mimeType": "application/pdf",
        "script": "deutschebahn.js"
    },
    {
        "filter": [
            {
                "field": "From",
                "match": "UNITTEST-buchungsbestaetigung@bahn.de",
                "mimeType": "message/rfc822",
                "scope": "Ancestors"
            }
        ],
        "function": "parseText",
        "mimeType": "text/plain",
        "script": "deutschebahn.js"
    },
    {
        "filter": [
            {
                "field": "From",
                "match": "buchungsbestaetigung@bahn.de",
                "mimeType": "message/rfc822",
                "scope": "Ancestors"
            }
        ],
        "function": "parseCancellation",
        "mimeType": "text/html",
        "script": "deutschebahn.js"
    },
    {
        "filter": [
            {
                "field": "carrierId",
                "match": "80",
                "mimeType": "internal/uic9183",
                "scope": "Current"
            }
        ],
        "function": "parseUic9183",
        "mimeType": "internal/uic9183",
        "script": "deutschebahn.js"
    },
    {
        "filter": [
            {
                "field": "uid",
                "match": "^bahn\\d{14}$",
                "mimeType": "internal/event",
                "scope": "Current"
            },
            {
                "field": "uid",
                "match": "^\\d{14}@hafas$",
                "mimeType": "internal/event",
                "scope": "Current"
            }
        ],
        "function": "parseEvent",
        "mimeType": "internal/event",
        "script": "deutschebahn.js"
    }
]
