1 parent
96a32ea8fb
commit
a643e7e3ab
106 files changed
+2223
-4669
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/* RustBox UI module: 90-sieve.js */
|
||||
|
||||
async function loadSieve() {
|
||||
const status = $("#sieve-status");
|
||||
status.textContent = "Connecting…";
|
||||
@@ -960,7 +960,7 @@ async function restoreSieveBackup(file) {
|
||||
);
|
||||
if (!confirmed) return;
|
||||
|
||||
// Validate the complete backup against the current server before writing any script.
|
||||
|
||||
for (const script of scripts) {
|
||||
const result = await request("/sieve/check", { method: "POST", body: JSON.stringify({ content: script.content }) });
|
||||
if (!result.valid) throw new Error(`Script “${script.name}” is not valid on this server: ${result.error || "validation failed"}`);
|
||||
|
||||
Reference in new issue
Block a user