mirror of
https://github.com/Hopiu/webapi-eca.git
synced 2026-03-17 14:30:23 +00:00
73 lines
No EOL
1.4 KiB
JSON
73 lines
No EOL
1.4 KiB
JSON
[
|
|
{
|
|
"id": "rule_1",
|
|
"event": "mail",
|
|
"actions": [
|
|
{
|
|
"module": "probinder->newContent",
|
|
"arguments": {
|
|
"content": "Rule#1: $X.subject"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rule_2",
|
|
"event": "mail",
|
|
"condition": { "sender": "sender2" },
|
|
"actions": [
|
|
{
|
|
"module": "probinder->newContent",
|
|
"arguments": {
|
|
"content": "Rule#2: $X.subject"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rule_emailyak",
|
|
"event": "yakmail",
|
|
"condition": { "FromAddress": "dominic.bosch.db@gmail.com" },
|
|
"actions": [
|
|
{
|
|
"module": "probinder->newContent",
|
|
"arguments": {
|
|
"content": "Received from EmailYak: $X.textbody"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rule_pull_emailyak",
|
|
"event": "emailyak->newMail",
|
|
"condition": { "FromAddress": "dominic.bosch.db@gmail.com" },
|
|
"actions": [
|
|
{
|
|
"module": "probinder->newContent",
|
|
"arguments": {
|
|
"content": "Received from EmailYak: $X.textbody"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rule_pull_probinder",
|
|
"event": "probinder->unread",
|
|
"condition": { "serviceId": "32" },
|
|
"actions": [
|
|
{
|
|
"module": "probinder->makeFileEntry",
|
|
"arguments": {
|
|
"service": "$X.serviceId",
|
|
"id": "$X.id"
|
|
}
|
|
},
|
|
{
|
|
"module": "probinder->setRead",
|
|
"arguments": {
|
|
"id": "$X.id"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |