https://github.com/protonmail/sieve.js
Javascript library to wrap sieve configuration
https://github.com/protonmail/sieve.js
Last synced: about 1 year ago
JSON representation
Javascript library to wrap sieve configuration
- Host: GitHub
- URL: https://github.com/protonmail/sieve.js
- Owner: ProtonMail
- Created: 2016-06-21T14:45:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-07T11:38:53.000Z (almost 3 years ago)
- Last Synced: 2024-04-13T22:26:19.658Z (about 2 years ago)
- Language: JavaScript
- Size: 1.85 MB
- Stars: 13
- Watchers: 7
- Forks: 7
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://circleci.com/gh/ProtonMail/sieve.js)
# Sieve.js
JavaScript library to wrap sieve configuration
### Simple representation
```js
{
Operator: {
label: '',
value: 'AllOf' // 'AnyOf'
},
Conditions: [
{
Comparator: {
value: 'contains' // 'is', 'matches', 'starts', 'ends'
},
Values: ['thomas.anderson@protonmail.com']
}
],
Actions: {
FileInto: ['trash'],
Mark: {
Read: false,
Starred: false
},
Vacation: 'Not here for few days'
}
}
```
## Test
`npm test`