1 import type { SimpleObject } from '@proton/components/containers/filters/interfaces';
2 import { ConditionComparator, ConditionType, FilterStatement } from '@proton/components/containers/filters/interfaces';
6 List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'],
10 List: ['fileinto', 'imap4flags', 'vacation'],
14 Text: '# Generated: Do not run this script on spam messages',
21 Name: 'vnd.proton.spam-threshold',
32 Type: 'VariableString',
40 Type: 'GreaterEqualsValue',
61 Text: '/**\r\n * @type or\r\n * @comparator ends\r\n */',
68 Headers: ['To', 'Cc', 'Bcc'],
71 Type: 'VariableString',
72 Value: '*${dollar}{frommail}',
76 Type: 'VariableString',
77 Value: '*${dollar}{frommail} ${dollar}{tomail}',
84 Type: 'UnicodeCaseMap',
105 Value: '${dollar}{File}',
106 Type: 'VariableString',
111 Flags: ['\\Seen', '\\Flagged'],
119 Value: "<div>Je mange une pomme, ${dollar}{d3_so} pas ${déso} mais ${j'ai} faim pedro</div> ",
120 Type: 'VariableString',
123 MIMEType: 'text/html',
132 const simple: SimpleObject = {
135 value: FilterStatement.ANY,
141 value: ConditionType.RECIPIENT,
145 value: ConditionComparator.ENDS,
147 Values: ['${frommail}', '${}', '${frommail} ${tomail}'],
151 FileInto: ['archive', 'polo', '${File}'],
156 Vacation: "<div>Je mange une pomme, ${d3_so} pas ${déso} mais ${j'ai} faim pedro</div> ",
160 export default { tree, simple };