The issue reported by qiancsf is that every time a backup is restored, the message “Outgoing email has been disabled for non-staff users” appears, despite the setting being set to “disable emails: NO” before the backup. thoka explains that this is an intentional feature to prevent unintended emails when restoring a backup, and the setting needs to be changed manually after the restore. pfaffman agrees that this is a useful feature, as it prevents accidental emails from being sent after a restore, and notes that the expected behavior is for the setting to be reset after a restore.
Every time the administrator restores a backup, this always appears: Outgoing email has been disabled for non-staff users
(But it was set to: disable emails:NO)
This is intentional. I suppose, to prevent users to be spammed with unintended mails when restoring a backup to a staging site.
You have to change the config option disable emails by hand.
Except for updating a staged site, can one assume that the frequency of restores is rare?
For cases of automatic restores, such as when synchronizing a staging instance, these configuration values can also be set via a script.
This is a fantastic feature. The likelihood that you don’t want to send emails to every single person in your database after you restore a backup without at least checking on a thing or two is very, very high.
If you mean that was the value before restored the backup then that is what is expected.