version: 1 rule_groups: - name: サンプルルール3 rules: - priority: 100 name: 社外アドレス20個以上は削除 action: type: delete attribute: {} notifies: - type: notify_sender predicate: and predicates: - target: header:tocc:address predicate: not-match pattern: '@example\.com$' count: 20 - target: envelope:from predicate: not-approver pattern: サンプルGroupC count: 0 - priority: 110 name: 特定キーワードを含むメールは承認要求 action: type: request_approval attribute: {} notifies: - type: notify_sender - type: notify_approver predicate: and predicates: - target: body predicate: match pattern: 社外秘|厳秘 count: 1 - target: envelope:from predicate: not-approver pattern: サンプルGroupC count: 0 - priority: 120 name: 社外ドメイン3種類以上は承認要求 action: type: request_approval attribute: {} notifies: - type: notify_sender - type: notify_approver predicate: and predicates: - target: header:tocc:domain predicate: not-match pattern: ^example\.com$ count: 3 - target: envelope:from predicate: not-approver pattern: サンプルGroupC count: 0 - priority: 130 name: 添付ファイルありは承認要求 action: type: request_approval attribute: {} notifies: - type: notify_sender - type: notify_approver predicate: and predicates: - target: attachment predicate: attachment-exist pattern: "" count: 1 - target: envelope:from predicate: not-approver pattern: サンプルGroupC count: 0