Commit 662434bf authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix Internet netmail settings key name: 'netmail_settings'

not just 'settings'

Fix issue 439. Thanks Nelgin!
parent f7bffb0c
Pipeline #3250 passed with stage
in 5 minutes and 53 seconds
......@@ -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);
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment