| { |
| "type":"filtering-rule-set-defined", |
| "eventId":0, |
| "aggregateId":"FilteringRule/bart", |
| "rules":[ |
| { |
| "id":"id-cc", |
| "name":"a name", |
| "conditionGroup": { |
| "conditionCombiner": "AND", |
| "conditions": [ |
| { |
| "field": "cc", |
| "comparator": "start-with", |
| "value": "A value to match 5" |
| }, |
| { |
| "field": "sentDate", |
| "comparator": "isOlderThan", |
| "value": "15d" |
| }, |
| { |
| "field": "sentDate", |
| "comparator": "isNewerThan", |
| "value": "30d" |
| }, |
| { |
| "field": "savedDate", |
| "comparator": "isNewerThan", |
| "value": "45d" |
| }, |
| { |
| "field": "internalDate", |
| "comparator": "isNewerThan", |
| "value": "2d" |
| }, |
| { |
| "field": "flag", |
| "comparator": "isSet", |
| "value": "$seen" |
| }, |
| { |
| "field": "flag", |
| "comparator": "isUnset", |
| "value": "$recent" |
| }, |
| { |
| "field": "flag", |
| "comparator": "isSet", |
| "value": "custom" |
| } |
| ] |
| }, |
| "action": { |
| "appendIn": { |
| "mailboxIds":["id-01"] |
| }, |
| "moveTo": { |
| "mailboxName": "Trash" |
| }, |
| "important":true, |
| "keyworkds":["abc"], |
| "reject":true, |
| "seen":true, |
| "forwardTo": { |
| "addresses": ["abc@example.com"], |
| "keepACopy": true |
| } |
| } |
| }, |
| { |
| "id":"id-from", |
| "name":"a name", |
| "conditionGroup": { |
| "conditionCombiner": "AND", |
| "conditions": [ |
| { |
| "field": "from", |
| "comparator": "contains", |
| "value": "A value to match 4" |
| } |
| ] |
| }, |
| "action": { |
| "appendIn": { |
| "mailboxIds":["id-01"] |
| }, |
| "moveTo": { |
| "mailboxName": "Trash" |
| }, |
| "important":true, |
| "keyworkds":["abc"], |
| "reject":true, |
| "seen":true, |
| "forwardTo": { |
| "addresses": ["abc@example.com"], |
| "keepACopy": true |
| } |
| } |
| }, |
| { |
| "id":"id-rcpt", |
| "name":"a name", |
| "conditionGroup": { |
| "conditionCombiner": "AND", |
| "conditions": [ |
| { |
| "field": "recipient", |
| "comparator": "not-exactly-equals", |
| "value": "A value to match 3" |
| } |
| ] |
| }, |
| "action": { |
| "appendIn": { |
| "mailboxIds":["id-01"] |
| }, |
| "moveTo": { |
| "mailboxName": "Trash" |
| }, |
| "important":true, |
| "keyworkds":["abc"], |
| "reject":true, |
| "seen":true, |
| "forwardTo": { |
| "addresses": ["abc@example.com"], |
| "keepACopy": true |
| } |
| } |
| }, |
| { |
| "id":"id-subject", |
| "name":"a name", |
| "conditionGroup": { |
| "conditionCombiner": "AND", |
| "conditions": [ |
| { |
| "field": "subject", |
| "comparator": "not-contains", |
| "value": "A value to match 2" |
| } |
| ] |
| }, |
| "action": { |
| "appendIn": { |
| "mailboxIds":["id-01"] |
| }, |
| "moveTo": { |
| "mailboxName": "Trash" |
| }, |
| "important":true, |
| "keyworkds":["abc"], |
| "reject":true, |
| "seen":true, |
| "forwardTo": { |
| "addresses": ["abc@example.com"], |
| "keepACopy": true |
| } |
| } |
| }, |
| { |
| "id":"id-to", |
| "name":"a name", |
| "conditionGroup": { |
| "conditionCombiner": "AND", |
| "conditions": [ |
| { |
| "field": "to", |
| "comparator": "exactly-equals", |
| "value": "A value to match 1" |
| } |
| ] |
| }, |
| "action": { |
| "appendIn": { |
| "mailboxIds":["id-01"] |
| }, |
| "moveTo": { |
| "mailboxName": "Trash" |
| }, |
| "important":true, |
| "keyworkds":["abc"], |
| "reject":true, |
| "seen":true, |
| "forwardTo": { |
| "addresses": ["abc@example.com"], |
| "keepACopy": true |
| } |
| } |
| } |
| ] |
| } |