Add config option in rslight.inc.php to separate email_tail from message-id generation.

This commit is contained in:
Retro_Guy 2024-02-22 17:40:44 -07:00
parent 075b00e3d3
commit 1e001e7f35
4 changed files with 8 additions and 5 deletions

View File

@ -342,10 +342,10 @@ function generate_msgid($identity)
return false;
break;
case "md5":
if ($CONFIG['email_tail'][0] !== '@') {
$mymsgid = '@' . $CONFIG['email_tail'];
if ($CONFIG['server_path'][0] !== '@') {
$mymsgid = '@' . $CONFIG['server_path'];
} else {
$mymsgid = $CONFIG['email_tail'];
$mymsgid = $CONFIG['server_path'];
}
return '<' . md5($identity) . $mymsgid . '>';
break;

View File

@ -22,6 +22,7 @@ return [
'rslight_title' => $CONFIG['rslight_title'],
'title_full' => $CONFIG['title_full'],
'hide_email' => $CONFIG['hide_email'],
'server_path' => $CONFIG['server_path'],
'email_tail' => $CONFIG['email_tail'],
'readonly' => $CONFIG['readonly'],
'anonuser' => $CONFIG['anonuser'],

View File

@ -17,8 +17,9 @@ return [
'site_shortname' => '',
'rslight_title' => 'New Rocksolid Light Install',
'title_full' => 'rslight',
'hide_email' => '1',
'email_tail' => '@example.com',
'hide_email' => '',
'server_path' => '@example.com',
'email_tail' => '@invalid.invalid',
'anonusername' => 'anonymous',
'anonuserpass' => '<anonymous_password>',
'timezone' => '0',

View File

@ -27,6 +27,7 @@ return [
'rslight_title' => 'The tagline at the top of the web page',
'title_full' => 'The site title in the client browser bar',
'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 @)',
'anonusername' => 'The username to use for anonymous posting (auto-created)',
'anonuserpass' => 'The password for the anonymous username',