mirrored 10 minutes ago
0
TimothyxxxFix id 13127de
{
    "id": "9bc3cc16-074a-45ac-9bdc-b2a362e1daf3",
    "snapshot": "thunderbird",
    "instruction": "Could you help me back up all the email files in my inbox to ~/emails.bak? Please save them separately in eml format.",
    "source": "https://www.quora.com/How-do-I-backup-email-files-in-Mozilla-Thunderbird",
    "config": [
        {
            "type": "download",
            "parameters": {
                "files": [
                    {
                        "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"
                    }
                ]
            }
        },
        {
            "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"
                ]
            }
        }
    ],
    "trajectory": "trajectories/",
    "related_apps": [
        "thunderbird"
    ],
    "evaluator": {
        "postconfig": [
            {
                "type": "command",
                "parameters": {
                    "command": [
                        "ls",
                        "-R",
                        "/home/user/emails.bak"
                    ],
                    "stdout": "emails.bak.ls"
                }
            }
        ],
        "func": "check_list",
        "result": {
            "type": "cache_file",
            "path": "emails.bak.ls"
        },
        "expected": {
            "type": "rule",
            "rules": {
                "expect": [
                    "\u6b61\u8fce\u4f7f\u7528\u65b0\u7684 Outlook.com \u5e33\u6236.*\\.eml",
                    "A Test E-mail.*\\.eml"
                ]
            }
        }
    }
}