[
  {
    "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"
        }
      }
    ]
  }
]