Your question
Hi,
Is there any way to specify multiple Sieve scripts for the data stage? For example, ‘script1’ and ‘script2’.
Thanks for help.
The script field on MtaStageData accepts only a single expression that resolves to one script name, but since trusted Sieve scripts support include, you can chain multiple scripts together that way: have script1 include "script2" (or create a small “wrapper” script that includes both), and point MtaStageData.script at that wrapper.
For example, set script on MtaStageData to "'wrapper'", and define a wrapper SieveSystemScript whose contents is:
require ["include"];
include :personal "script1";
include :personal "script2";
This runs both scripts in sequence during the DATA stage. See MtaStageData and the Trusted Interpreter docs, which note that trusted scripts “can also import each other using the include command.”
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.