Running NC v30.0.2 with Mail v4.0.9 I am using the following command to set up user mail accounts:
php occ mail:account:create "$username" \
"$full_name" "$mail_address" \
"$imap_server" 993 ssl "$mail_address" "$mail_password" \
"$smtp_server" 465 ssl "$mail_address" "$mail_password"
However, what’s missing is the credentials for the Sieve server. The docs for this command do not mention any option to set these. Also mail:account:update --help
does not show anything like that. So it seems like there is only the browser UI to set them up, or am I missing some documentation?
Is there some other API I can call in my script to set up the Sieve server credentials for an account?
Edit: found out that, once Sieve filters are enabled in the account settings GUI, it adapts the IMAP credentials per default.
So the question is now rather: how do I enable Sieve filters per default, using occ mail:account:create
or any other occ command?
Had no luck to find a setting with occ config:list | rg sieve
so far.