ver Jan15th

attachment task of thunderbird
This commit is contained in:
David Chang
2024-01-15 11:49:43 +08:00
parent 59fdd9f1a2
commit b9d8e6c631
5 changed files with 124 additions and 7 deletions

View File

@@ -50,10 +50,49 @@
"thunderbird"
],
"evaluator": {
"func": "run_sqlite3",
"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": {}
"rules": {
"expect": [
"Attachment added!"
]
}
}
}
}