91 lines
2.3 KiB
JSON
91 lines
2.3 KiB
JSON
{
|
|
"id": "08c73485-7c6d-4681-999d-919f5c32dcfa",
|
|
"snapshot": "thunderbird",
|
|
"instruction": "Thunderbird's message filters seem to only fire on Inbox automatically. If you want to filter on subfolders, you'd have to start this filter manually. I am wondering if the filter can be applied automatically. Could you help me apply automatic message filters to subfolders",
|
|
"source": "https://superuser.com/questions/544480/how-to-apply-automatic-message-filters-to-subfolders-too?noredirect=1&lq=1",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/thunderbird/dd84e895-72fd-4023-a336-97689ded257c/thunderbird-profile.tar.gz",
|
|
"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": "close_window",
|
|
"parameters": {
|
|
"window_name": "Mail.thunderbird",
|
|
"strict": true,
|
|
"by_class": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
}
|
|
],
|
|
"func": "check_thunderbird_prefs",
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/.thunderbird/t5q2a5hp.default-release/prefs.js",
|
|
"dest": "thunder-prefs.js"
|
|
},
|
|
"expected": {
|
|
"type": "rule",
|
|
"rules": {
|
|
"expect": {
|
|
"mail.server.default.applyIncomingFilters": {
|
|
"method": "eq",
|
|
"ref": true
|
|
},
|
|
"mail.imap.use_status_for_biff": {
|
|
"method": "eq",
|
|
"ref": false
|
|
}
|
|
},
|
|
"unexpect": {
|
|
"mail.server.default.autosync_offline_stores": {
|
|
"method": "eq",
|
|
"ref": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"proxy": false
|
|
} |