Same problem raised 2 year ago and its 2017 now.
Does the $wgDefaultUserOptions['echo-email-frequency'] setting server for this purpose?
Same problem raised 2 year ago and its 2017 now.
Does the $wgDefaultUserOptions['echo-email-frequency'] setting server for this purpose?
OK I got it: in includes/EmailBatch.php it says:
* user based on the user setting, this assumes the following value for
* member setting for echo-email-frequency
* -1 - no email
* 0 - instant
* 1 - once everyday
* 7 - once every 7 days
So $wgDefaultUserOptions['echo-email-frequency'] = 1; should send email daily
Unfortunately this setting will not create daily digest. Instead, it just store notification emails in jobs, and then send many emails out at midnight. :(
It seems that jobs need to be stored in Redis. But not sure whether will it bundle email or not.
wfLoadExtension( 'Echo' );
$wgEchoUseJobQueue = true;
// 1 means 1 day here, see https://github.com/wikimedia/mediawiki-extensions-Echo/blob/c7bd07fc0c53c52184b308d220a42cd416626e24/includes/EmailBatch.php for info
$wgDefaultUserOptions['echo-email-frequency'] = 1;
//4 hours,see https://gerrit.wikimedia.org/r/#/c/translatewiki/+/267873/1/TranslatewikiSettings.php
$wgEchoBundleEmailInterval = 14400;
// See https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Echo/+/52319/
$wgJobTypeConf['MWEchoNotificationEmailBundleJob'] = array(
'class' => 'JobQueueRedis',
'redisServer' => '127.0.0.1:6379',
'redisConfig' => array( 'connectTimeout' => 1 ),
'claimTTL' => 3600,
'checkDelay' => true
);