Skip to content
background-image background-image

Examples

Filtering messages & attachments

There are some examples for messages and attachments filtering behaviour explanation.

All examples has the same input set of emails. Each example explains specific configuration properties combination.

Input email details

[
    {
        "ID": "6ce41109e@intelstudios.onmicrosoft.com-730b4889-@AM7PR066.eurprd07.prod.outlook.com",
        "Subject": "Without attachments",
        "From": [
            {
                "Name": "Microsoft Outlook",
                "Address": "MicrosoftExchange329e71ec88ae4615bbc36ab6ce41109e@intelstudios.onmicrosoft.com"
            }
        ],
        "To": [
            {
                "Name": "",
                "Address": "test@intelstudios.com"
            }
        ],
        "DateSent": "2022-08-26T09:27:16Z",
        "DateReceived": "2022-08-26T09:27:15Z",
        "BodyText": "some content",
        "Attachment": null
    },
    {
        "ID": "6ce411649e@intelstudios.onmicrosoft.com-730b4889-@AM7PR066.eurprd07.prod.outlook.com",
        "Subject": "With more attachments (inline and also attached)",
        "From": [
            {
                "Name": "Microsoft Outlook",
                "Address": "MicrosoftExchange329e71ec88ae4615bbc36ab6ce41109e@intelstudios.onmicrosoft.com"
            }
        ],
        "To": [
            {
                "Name": "",
                "Address": "test@intelstudios.com"
            }
        ],
        "DateSent": "2022-08-26T09:27:16Z",
        "DateReceived": "2022-08-26T09:27:15Z",
        "BodyText": "some content",
        "Attachment": [
            {
                "Name": "priloha1.pdf",
                "IsInline": false,
                "Content": "c2FkZiBhc2Zhc2Ygb2lhbndvZiBhdw=="
            },
            {
                "Name": "img_arrow-right.png",
                "IsInline": true,
                "Content": "c2FkZiBhc2Zhc2w=="
            },
            {
                "Name": "priloha2.png",
                "IsInline": false,
                "Content": "2FkZiBhc2Zhc2Ygb2lhbndvZiBh2FkZiBhc2Zhc2Ygb2lhbndvZiBh2FkZiBhc2FkZiBhc2Zhc2w=="
            }
        ]        
    },
    {
        "ID": "6ce411649e@intelstudios.onmicrosoft.com-730b4889-@AM7PR066.eurprd07.prod.outlook.com",
        "Subject": "With only one attached attachment",
        "From": [
            {
                "Name": "Microsoft Outlook",
                "Address": "MicrosoftExchange329e71ec88ae4615bbc36ab6ce41109e@intelstudios.onmicrosoft.com"
            }
        ],
        "To": [
            {
                "Name": "",
                "Address": "test@intelstudios.com"
            }
        ],        
        "DateSent": "2022-08-26T09:27:16Z",
        "DateReceived": "2022-08-26T09:27:15Z",
        "BodyText": "some content",
        "Attachment": [
            {
                "Name": "priloha2.pdf",
                "IsInline": false,
                "Content": "c2FkZiBhc2Zhc2Ygb2lhbndvZiBhdw=="
            }
        ]        
    },
    {
        "ID": "6ce411649e@intelstudios.onmicrosoft.com-730b4889-@AM7PR066.eurprd07.prod.outlook.com",
        "Subject": "With only one inline attachment",
        "From": [
            {
                "Name": "Microsoft Outlook",
                "Address": "MicrosoftExchange329e71ec88ae4615bbc36ab6ce41109e@intelstudios.onmicrosoft.com"
            }
        ],
        "To": [
            {
                "Name": "",
                "Address": "test@intelstudios.com"
            }
        ],
        "DateSent": "2022-08-26T09:27:16Z",
        "DateReceived": "2022-08-26T09:27:15Z",
        "BodyText": "some content",
        "Attachment": [
            {
                "Name": "img_arrow-right.png",
                "IsInline": true,
                "Content": "c2FkZiBhc2Zhc2w=="
            }
        ]        
    }
]   

Examples

Name Emails Transfer attachments Ignore attachments linked from body Filter AttachmentName
Example 1 All emails false
Example 2 All emails true false
Example 3 All emails true true *.pdf
Example 4 Only emails with attchs false
Example 5 Only emails with attchs true false *.pdf
Example 6 Only emails with attchs true true priloha2.pdf
Example 7 Only emails with attchs true true *.pdf
Example 8 Only emails with no attchs