vccsievejs

Javascript library to wrap sieve configuration

Usage no npm install needed!

<script type="module">
  import vccsievejs from 'https://cdn.skypack.dev/vccsievejs';
</script>

README

sieve.js

Javascript library to wrap sieve configuration

Simple repreentation

{
    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'
    }
}