Skip to content
Snippets Groups Projects
Commit 41c447e9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix Internet netmail settings key name: 'netmail_settings'

not just 'settings'

Fix issue 439. Thanks Nelgin!
parent f28a6000
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment