mirrored 15 minutes ago
0
TimothyxxxFix id 13127de
{
    "id": "d38192b0-17dc-4e1d-99c3-786d0117de77",
    "snapshot": "thunderbird",
    "instruction": "Attach the my AWS bill to the email. The bill is stored at ~/aws-bill.pdf. Don't close it or send it. I haven't finish all the contents.",
    "source": "https://support.mozilla.org/en-US/kb/how-use-attachments",
    "config": [
        {
            "type": "download",
            "parameters": {
                "files": [
                    {
                        "url": "https://drive.usercontent.google.com/download?id=1JDUxe8Cs0D9La9ECoYbHJAIQ95DZfkDT&export=download&authuser=0&confirm=t&uuid=1e0f94d8-4fb1-4f9b-878a-516cf4a7ebc4&at=APZUnTXHBZKTuW_vQUzi-1XKuAYg:1705242554801",
                        "path": "/home/user/aws-bill.pdf"
                    },
                    {
                        "url": "https://drive.usercontent.google.com/download?id=1EHLRWzBCOsyERkSMUnTF2pnsR0n6ZvtR&export=download&authuser=0&confirm=t&uuid=de09bd5e-bef8-499a-b599-c642af190e10&at=APZUnTXqOsQkxl0zMSX6R1Sgp_v3:1704362491712",
                        "path": "/home/user/thunderbird-profile.tar.gz"
                    },
                    {
                        "url": "https://drive.usercontent.google.com/download?id=17LutYTkEXhM__sxvrdldar7p-eQba4Pm&export=download&authuser=0&confirm=t&uuid=34730e1c-0fac-401a-ab91-102a47f02224&at=APZUnTX4eFTnG9vnYlQEJX6N0jqP:1705227498314",
                        "path": "/home/user/.aws-bill-mail-body.html"
                    }
                ]
            }
        },
        {
            "type": "execute",
            "parameters": {
                "command": [
                    "tar",
                    "-xzv",
                    "--recursive-unlink",
                    "-f",
                    "/home/user/thunderbird-profile.tar.gz",
                    "-C",
                    "/home/user/"
                ]
            }
        },
        {
            "type": "launch",
            "parameters": {
                "command": "/usr/bin/thunderbird -compose \"from='Anonym Tester <anonym-x2024@outlook.com>',to=assistant@outlook.com,subject='New-month AWS Bill',body='$(cat /home/user/.aws-bill-mail-body.html)'\"",
                "shell": true
            }
        }
    ],
    "trajectory": "trajectories/d088f539-cab4-4f9a-ac92-9999fc3a656e",
    "related_apps": [
        "thunderbird"
    ],
    "evaluator": {
        "postconfig": [
            {
                "type": "download",
                "parameters": {
                    "files": [
                        {
                            "url": "https://drive.usercontent.google.com/download?id=1abb7PPPRGGy3elpq2vTXe2aKTMOrbm7c&export=download&authuser=0&confirm=t&uuid=652a3d4c-278e-499c-bb26-58d0f70aa317&at=APZUnTXs_ZTZzOF3QrBa_rMjMr08:1705287009269",
                            "path": "/home/user/show-thunderbird-attachments.py"
                        }
                    ]
                }
            },
            {
                "type": "execute",
                "parameters": {
                    "command": [
                        "pip",
                        "install",
                        "cssselect"
                    ]
                }
            },
            {
                "type": "execute",
                "parameters": {
                    "command": [
                        "python",
                        "/home/user/show-thunderbird-attachments.py",
                        "New-month AWS Bill",
                        "aws-bill.pdf"
                    ],
                    "stdout": "check-attachments.output"
                }
            }
        ],
        "func": "check_list",
        "result": {
            "type": "cache_file",
            "path": "check-attachments.output"
        },
        "expected": {
            "type": "rule",
            "rules": {
                "expect": [
                    "Attachment added!"
                ]
            }
        }
    }
}