Add config option in rslight.inc.php to separate email_tail from message-id generation.
This commit is contained in:
parent
075b00e3d3
commit
1e001e7f35
|
@ -342,10 +342,10 @@ function generate_msgid($identity)
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
case "md5":
|
case "md5":
|
||||||
if ($CONFIG['email_tail'][0] !== '@') {
|
if ($CONFIG['server_path'][0] !== '@') {
|
||||||
$mymsgid = '@' . $CONFIG['email_tail'];
|
$mymsgid = '@' . $CONFIG['server_path'];
|
||||||
} else {
|
} else {
|
||||||
$mymsgid = $CONFIG['email_tail'];
|
$mymsgid = $CONFIG['server_path'];
|
||||||
}
|
}
|
||||||
return '<' . md5($identity) . $mymsgid . '>';
|
return '<' . md5($identity) . $mymsgid . '>';
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,6 +22,7 @@ return [
|
||||||
'rslight_title' => $CONFIG['rslight_title'],
|
'rslight_title' => $CONFIG['rslight_title'],
|
||||||
'title_full' => $CONFIG['title_full'],
|
'title_full' => $CONFIG['title_full'],
|
||||||
'hide_email' => $CONFIG['hide_email'],
|
'hide_email' => $CONFIG['hide_email'],
|
||||||
|
'server_path' => $CONFIG['server_path'],
|
||||||
'email_tail' => $CONFIG['email_tail'],
|
'email_tail' => $CONFIG['email_tail'],
|
||||||
'readonly' => $CONFIG['readonly'],
|
'readonly' => $CONFIG['readonly'],
|
||||||
'anonuser' => $CONFIG['anonuser'],
|
'anonuser' => $CONFIG['anonuser'],
|
||||||
|
|
|
@ -17,8 +17,9 @@ return [
|
||||||
'site_shortname' => '',
|
'site_shortname' => '',
|
||||||
'rslight_title' => 'New Rocksolid Light Install',
|
'rslight_title' => 'New Rocksolid Light Install',
|
||||||
'title_full' => 'rslight',
|
'title_full' => 'rslight',
|
||||||
'hide_email' => '1',
|
'hide_email' => '',
|
||||||
'email_tail' => '@example.com',
|
'server_path' => '@example.com',
|
||||||
|
'email_tail' => '@invalid.invalid',
|
||||||
'anonusername' => 'anonymous',
|
'anonusername' => 'anonymous',
|
||||||
'anonuserpass' => '<anonymous_password>',
|
'anonuserpass' => '<anonymous_password>',
|
||||||
'timezone' => '0',
|
'timezone' => '0',
|
||||||
|
|
|
@ -27,6 +27,7 @@ return [
|
||||||
'rslight_title' => 'The tagline at the top of the web page',
|
'rslight_title' => 'The tagline at the top of the web page',
|
||||||
'title_full' => 'The site title in the client browser bar',
|
'title_full' => 'The site title in the client browser bar',
|
||||||
'hide_email' => 'Truncate email addresses in From header (1=true, blank=false)',
|
'hide_email' => 'Truncate email addresses in From header (1=true, blank=false)',
|
||||||
|
'server_path' => 'What to add to as the domain for Message-ID header (include @)',
|
||||||
'email_tail' => 'What to add to a username if not in the form of an email address (include @)',
|
'email_tail' => 'What to add to a username if not in the form of an email address (include @)',
|
||||||
'anonusername' => 'The username to use for anonymous posting (auto-created)',
|
'anonusername' => 'The username to use for anonymous posting (auto-created)',
|
||||||
'anonuserpass' => 'The password for the anonymous username',
|
'anonuserpass' => 'The password for the anonymous username',
|
||||||
|
|
Loading…
Reference in New Issue