How to call Sieve user scripts

Your question

Hello,

I have created a Sive User script in the admin panel, Settings → Sieve → User Scripts. The script has ID test-script.

Now what? How am I supposed to call this?

require ["include"];

include :global "test-script";

Based on this Reddit question: How to make use of sieve script created with Stalwart sieve GUI? : r/stalwartlabs

This… kind of works? Except that I’m getting a sieve.script-not-found warning in the Stalwart logs

I realized that this is indeed the correct way to include. What I was missing is that the server configuration needs to be reloaded after adding the script in the Web interface