require ["vnd.dovecot.pipe", "copy", "body"]; # Forward Extranet challenge codes to the room-cal SMS endpoint. # The pipe target script (sms_code_filter.sh) does the extraction and POST. # # Dovecot config required in /etc/dovecot/conf.d/90-sieve.conf: # plugin { # sieve_plugins = sieve_extprograms # sieve_pipe_socket_dir = /var/run/dovecot/sieve-pipe # # or use sieve_pipe_bin_dir for direct binary execution: # sieve_pipe_bin_dir = /etc/dovecot/sieve-pipe # } # # Place (or symlink) sms_code_filter.sh in sieve_pipe_bin_dir and make it # executable. Set SMS_API_URL and SMS_GATEWAY_SECRET in the script or via # the environment Dovecot inherits. if body :text :contains "Extranet code:" { pipe :copy "sms_code_filter.sh"; }