Skip to content

sieve

4 posts with the tag “sieve”

Introducing Sievepad: write and debug Sieve scripts in the browser

Sieve has no statement for printing a value or writing to a log, so debugging a mail filter has long meant sending test messages and reading debug headers out of their raw source. Sievepad runs the Stalwart Sieve interpreter in the browser, inside the editor that powers Visual Studio Code, so a script can be written, run and debugged against test messages in seconds, without a server and without sending a single email.

Sieve filters are now available on Stalwart JMAP v0.2

Sieve (RFC5228) is a scripting language for filtering email messages at or around the time of final delivery. It is suitable for running on a mail server where users may not be allowed to execute arbitrary programs as it has no user-controlled loops or the ability to run external programs. Sieve is a data-driven programming language, similar to earlier email filtering languages such as procmail and maildrop, and earlier line-oriented languages such as sed and AWK: it specifies conditions to match and actions to take on matching.