sncf.json 2.01 KB
Newer Older
1
2
[
    {
3
        "filter": [
4
            {
5
                "field": "From",
6
                "match": "e-billet@sncf.fr",
7
                "mimeType": "message/rfc822",
8
                "scope": "Ancestors"
9
10
11
            },
            {
                "match": "^i0CV",
12
13
                "type": "Barcode",
                "scope": "Descendants"
14
            }
15
        ],
16
        "function": "parsePdf",
17
        "script": "sncf.js",
18
        "mimeType": "application/pdf"
19
    },
20
21
22
23
    {
        "filter": [
            {
                "match": "^i[01]CV",
24
                "mimeType": "text/plain"
25
26
27
28
            }
        ],
        "function": "parseSncfBarcode",
        "script": "sncf.js",
29
        "mimeType": "text/plain"
30
    },
31
    {
32
33
        "filter": [
            {
34
                "field": "From",
35
                "match": "UNITTEST-e-billet@sncf.fr",
36
                "mimeType": "message/rfc822",
37
                "scope": "Ancestors"
38
39
            }
        ],
40
        "function": "parseSncfPdfText",
41
        "script": "sncf.js",
42
        "mimeType": "text/plain"
43
    },
44
45
46
47
    {
        "filter": [
            {
                "match": "^2200",
48
                "mimeType": "application/octet-stream",
49
                "scope": "Descendants"
50
51
52
53
            }
        ],
        "function": "parseSecutixPdf",
        "script": "sncf.js",
54
        "mimeType": "application/pdf"
55
    },
56
    {
57
58
        "filter": [
            {
59
                "field": "From",
60
                "match": "oui.sncf",
61
                "mimeType": "message/rfc822",
62
                "scope": "Ancestors"
63
64
            }
        ],
65
        "function": "parseOuigoEmail",
66
        "script": "sncf.js",
67
        "mimeType": "text/html"
68
69
70
71
    },
    {
        "filter": [
            {
72
                "field": "From",
73
                "match": "ne-pas-repondre@pasngr.ouigo.com",
74
                "mimeType": "message/rfc822",
75
                "scope": "Ancestors"
76
77
78
            }
        ],
        "function": "parseOuigoTicket",
79
        "script": "sncf.js",
80
        "mimeType": "application/pdf"
81
82
    }
]