Merge branch 'INDA-330-pii-update' into 'main'
[ProtonMail-WebClient.git] / packages / sieve / fixtures / v2SpamOnly.ts
blob1af399aa1ae7f54d30b78595c4e82f58d4747bcd
1 const tree = [
2     {
3         List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'],
4         Type: 'Require',
5     },
6     {
7         List: ['fileinto', 'imap4flags'],
8         Type: 'Require',
9     },
10     {
11         Text: '# Generated: Do not run this script on spam messages',
12         Type: 'Comment',
13     },
14     {
15         If: {
16             Tests: [
17                 {
18                     Name: 'vnd.proton.spam-threshold',
19                     Keys: ['*'],
20                     Format: null,
21                     Match: {
22                         Type: 'Matches',
23                     },
24                     Type: 'Environment',
25                 },
26                 {
27                     Value: {
28                         Value: '${1}',
29                         Type: 'VariableString',
30                     },
31                     Flags: [],
32                     Format: {
33                         Type: 'ASCIINumeric',
34                     },
35                     Match: {
36                         Comparator: 'ge',
37                         Type: 'GreaterEqualsValue',
38                     },
39                     Type: 'SpamTest',
40                 },
41             ],
42             Type: 'AllOf',
43         },
44         Then: [
45             {
46                 Type: 'Return',
47             },
48         ],
49         Type: 'If',
50     },
53 export default { tree, simple: undefined };