We’re currently using the API to do some large forum migrations.
Of course we have disabled all email sending during the import runs using
config.action_mailer.delivery_method = :test
But still the import jobs sometimes hangs for 10 or 20 seconds, and it turns out that the system is busy creating the notification mails.
So is there a more high-level way of disabling email notifications? That would allow the system to stop wasting time on creating those mails, and it would also allow an API client to toggle the notifications instead of having to reconfigure (argh, currently outside of the multisite config!) and restart Discourse.
Maybe it’s already there, but we cannot find it.