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'],
14 Text: '# Generated: Do not run this script on spam messages',
21 Name: 'vnd.proton.spam-threshold',
32 Type: 'VariableString',
40 Type: 'GreaterEqualsValue',
55 Text: '/**\r\n * @type or\r\n * @comparator starts\r\n * @comparator starts\r\n * @comparator ends\r\n * @comparator default\r\n */',
68 Type: 'UnicodeCaseMap',
74 Keys: ['\\\\*\\\\?\\\\sender\\\\\\\\?\\\\**'],
79 Type: 'UnicodeCaseMap',
87 Headers: ['To', 'Cc', 'Bcc'],
88 Keys: ['*\\\\*\\\\?\\\\recipient\\\\\\\\?\\\\*'],
93 Type: 'UnicodeCaseMap',
101 Headers: ['X-Attached'],
120 const simple: SimpleObject = {
123 value: FilterStatement.ANY,
129 value: ConditionType.SUBJECT,
132 label: 'begins with',
133 value: ConditionComparator.STARTS,
140 value: ConditionType.SENDER,
143 label: 'begins with',
144 value: ConditionComparator.STARTS,
146 Values: ['*?\\sender\\?*'],
151 value: ConditionType.RECIPIENT,
155 value: ConditionComparator.ENDS,
157 Values: ['*?\\recipient\\?*'],
161 label: 'Attachments',
162 value: ConditionType.ATTACHMENTS,
166 value: ConditionComparator.CONTAINS,
180 export default { tree, simple };