[
    {
        "mimeType": "text/plain",
        "filter": [
            { "field": "From", "match": "@amadeus.com", "mimeType": "message/rfc822", "scope": "Ancestors" },
            { "field": "Message-ID",  "match": "amadeus.com", "mimeType": "message/rfc822", "scope": "Ancestors" }
        ],
        "script": "amadeus.js"
    },
    {
        "mimeType": "internal/event",
        "filter": [
            { "field": "From", "match": "@amadeus.com", "mimeType": "message/rfc822", "scope": "Ancestors" },
            { "field": "productId", "match": "//AMADEUS//", "mimeType": "text/calendar", "scope": "Parent" }
        ],
        "script": "amadeus.js",
        "function": "parseEvent"
    }
]
