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

https://github.com/foxcpp/go-sieve

[WIP] Sieve language implementation in Go
https://github.com/foxcpp/go-sieve

email sieve-email-filter

Last synced: 5 months ago
JSON representation

[WIP] Sieve language implementation in Go

Awesome Lists containing this project

README

          

go-sieve
====================

Sieve email filtering language ([RFC 5228])
implementation in Go.

## Supported extensions

- envelope ([RFC 5228])
- fileinto ([RFC 5228])
- encoded-character ([RFC 5228])
- imap4flags ([RFC 5232])
- variables ([RFC 5229])
- relational ([RFC 5231])

## Example

See ./cmd/sieve-run.

## Known issues

- Some invalid scripts are accepted as valid (see tests/compile_test.go)
- Comments in addresses are not ignored when testing equality, etc.
- Source routes in addresses are not ignored when testing equality, etc.

[RFC 5228]: https://datatracker.ietf.org/doc/html/rfc5228
[RFC 5229]: https://datatracker.ietf.org/doc/html/rfc5229
[RFC 5232]: https://datatracker.ietf.org/doc/html/rfc5232
[RFC 5231]: https://datatracker.ietf.org/doc/html/rfc5231