From a87253c307e447f3be4e2f298cc3507209619118 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 21 Apr 2018 00:14:11 +0100 Subject: [PATCH] Improve docs for Enotif-related settings Also fix documentation that was claiming wgEmergencyContact as the default enotif sender, which is wrong. EmailNotification uses $wgPasswordSender instead. Change-Id: I5b060acac7bdfdbca9ac31e3473286225d1caa6f --- includes/DefaultSettings.php | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 7c7277aea3..c4d493bcdf 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1573,16 +1573,17 @@ $wgDjvuOutputExtension = 'jpg'; /** * Site admin email address. * - * Defaults to "wikiadmin@$wgServerName". + * Defaults to "wikiadmin@$wgServerName" (in Setup.php). */ $wgEmergencyContact = false; /** * Sender email address for e-mail notifications. * - * The address we use as sender when a user requests a password reminder. + * The address we use as sender when a user requests a password reminder, + * as well as other e-mail notifications. * - * Defaults to "apache@$wgServerName". + * Defaults to "apache@$wgServerName" (in Setup.php). */ $wgPasswordSender = false; @@ -1596,7 +1597,7 @@ $wgPasswordSenderName = 'MediaWiki Mail'; /** * Reply-To address for e-mail notifications. * - * Defaults to $wgPasswordSender. + * Defaults to $wgPasswordSender (in Setup.php). */ $wgNoReplyAddress = false; @@ -1690,8 +1691,15 @@ $wgAdditionalMailParams = null; $wgAllowHTMLEmail = false; /** - * True: from page editor if s/he opted-in. False: Enotif mails appear to come - * from $wgEmergencyContact + * Allow sending of e-mail notifications with the editor's address as sender. + * + * This setting depends on $wgEnotifRevealEditorAddress also being enabled. + * If both are enabled, notifications for actions from users that have opted-in, + * will be sent to other users with their address as "From" instead of "Reply-To". + * + * If disabled, or not opted-in, notifications come from $wgPasswordSender. + * + * @var bool */ $wgEnotifFromEditor = false; @@ -1723,8 +1731,18 @@ $wgEnotifWatchlist = false; $wgEnotifUserTalk = false; /** - * Set the Reply-to address in notifications to the editor's address, if user - * allowed this in the preferences. + * Allow sending of e-mail notifications with the editor's address in "Reply-To". + * + * Note, enabling this only actually uses it in notification e-mails if the user + * opted-in to this feature. This feature flag also controls visibility of the + * 'enotifrevealaddr' preference, which, if users opt into, will make e-mail + * notifications about their actions use their address as "Reply-To". + * + * To set the address as "From" instead of "Reply-To", also enable $wgEnotifFromEditor. + * + * If disabled, or not opted-in, notifications come from $wgPasswordSender. + * + * @var bool */ $wgEnotifRevealEditorAddress = false; -- 2.20.1