An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![CircleCI](https://circleci.com/gh/ProtonMail/sieve.js.svg?style=svg)](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`