From 41c447e915fae6c340e8aee5f45d8b193376a02e Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Wed, 21 Sep 2022 09:38:33 -0700
Subject: [PATCH] Fix Internet netmail settings key name: 'netmail_settings'

not just 'settings'

Fix issue 439. Thanks Nelgin!
---
 src/sbbs3/scfglib1.c | 2 +-
 src/sbbs3/scfgsave.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/scfglib1.c b/src/sbbs3/scfglib1.c
index 3bb2dc7f15..122ec6760b 100644
--- a/src/sbbs3/scfglib1.c
+++ b/src/sbbs3/scfglib1.c
@@ -560,7 +560,7 @@ BOOL read_msgs_cfg(scfg_t* cfg, char* error, size_t maxerrlen)
 	SAFECOPY(cfg->sys_inetaddr, iniGetString(section, NULL, "addr", "", value));
 	SAFECOPY(cfg->inetmail_sem, iniGetString(section, NULL, "netmail_sem", "", value));
 	SAFECOPY(cfg->smtpmail_sem, iniGetString(section, NULL, "smtp_sem", "", value));
-	cfg->inetmail_misc = iniGetUInteger(section, NULL, "settings", 0);
+	cfg->inetmail_misc = iniGetUInteger(section, NULL, "netmail_settings", 0);
 	cfg->inetmail_cost = iniGetUInt32(section, NULL, "cost", 0);
 
 	iniFreeStringList(ini);
diff --git a/src/sbbs3/scfgsave.c b/src/sbbs3/scfgsave.c
index 2dbb579099..8d43ec5ba8 100644
--- a/src/sbbs3/scfgsave.c
+++ b/src/sbbs3/scfgsave.c
@@ -501,7 +501,7 @@ BOOL write_msgs_cfg(scfg_t* cfg, int backup_level)
 		str_list_t section = strListInit();
 		iniSetString(&section, name, "addr", cfg->sys_inetaddr, NULL); /* Internet address */
 		iniSetString(&section, name, "netmail_sem", cfg->inetmail_sem, NULL);
-		iniSetHexInt(&section, name, "settings", cfg->inetmail_misc, NULL);
+		iniSetHexInt(&section, name, "netmail_settings", cfg->inetmail_misc, NULL);
 		iniSetUInt32(&section, name, "cost", cfg->inetmail_cost, NULL);
 		iniSetString(&section, name, "smtp_sem", cfg->smtpmail_sem, NULL);
 		strListMerge(&ini, section);
-- 
GitLab