{
  "id": "06fe7178-4491-4589-810f-2e2bc9502122",
  "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/06fe7178-4491-4589-810f-2e2bc9502122",
  "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": [
          "歡迎使用新的 Outlook.com 帳戶.*\\.eml",
          "A Test E-mail.*\\.eml"
        ]
      }
    }
  }
}
