The Debug button on a Sieve script sent a copy to an outside site, whose interpreter knows only upstream's extension names: a script that requires vnd.inbuxa.expressions or vnd.inbuxa.while failed to compile there, and the button took admins to another project's site. The playground now ships inside the console and runs the server's own interpreter. sieve-playground/ is built by inbuxa-server's tools/sieve-playground (SOURCE.md names the commit); sieve-playground.ts copies it, with Monaco 0.52.2 from node_modules, into sieve-playground/<content hash>/ (the server caches every file but the console's index.html for good) and gives the console its path. The script stays on the console's origin, so the warning dialog before opening it is gone. Strings (en.json): sievepad.failed reworded, sievepad.debugHint added, the three warning-dialog strings removed. webui.zip grows from 1.3 MB to 3.4 MB: 0.9 MB of compressed WebAssembly, the rest Monaco's editor core.
38 lines
1.3 KiB
Sieve
38 lines
1.3 KiB
Sieve
# Out of office with dates
|
|
#
|
|
# Replies only while the current date is inside the vacation window,
|
|
# never to mailing lists or automated senders, and at most once every
|
|
# three days per sender. Change the dates to see the reply disappear.
|
|
|
|
require ["vacation", "vacation-seconds", "date", "relational", "variables",
|
|
"envelope"];
|
|
|
|
set "subject" "";
|
|
if currentdate :value "ge" "date" "2026-01-01" {
|
|
if currentdate :value "le" "date" "2026-12-31" {
|
|
if not anyof (exists "List-Id",
|
|
header :contains "Precedence" ["bulk", "list", "junk"],
|
|
header :is "Auto-Submitted" ["auto-replied", "auto-generated"],
|
|
envelope :localpart :is "from" ["mailer-daemon", "noreply", "no-reply"]) {
|
|
if header :matches "Subject" "*" {
|
|
set "subject" "${1}";
|
|
}
|
|
vacation :days 3
|
|
:from "Jane Doe <[email protected]>"
|
|
:addresses ["[email protected]", "[email protected]"]
|
|
:subject "Out of office: ${subject}"
|
|
:handle "summer-vacation"
|
|
text:
|
|
Hello,
|
|
|
|
I am on vacation and will read your message about "${subject}" when
|
|
I am back. For urgent matters please contact [email protected].
|
|
|
|
Best regards,
|
|
Jane
|
|
.
|
|
;
|
|
}
|
|
}
|
|
}
|