Fix sogo-tool operations on Sieve script

Fixes #2617