From 3ad822274bcca1faba9befdfa7fe9d1defffdaf9 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 25 Jul 2018 07:02:22 +0000 Subject: [PATCH] Revert the feature added in rev 1.42 of this file (save/re-use netmail destination addresses): this feature messed up the smeg@ address book Baja module. Use the email_sec.js module if you want this feature. --- src/sbbs3/execfunc.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/sbbs3/execfunc.cpp b/src/sbbs3/execfunc.cpp index 332e381419..6fc009c337 100644 --- a/src/sbbs3/execfunc.cpp +++ b/src/sbbs3/execfunc.cpp @@ -196,17 +196,11 @@ int sbbs_t::exec_function(csi_t *csi) case CS_MAIL_SEND_NETMAIL: case CS_MAIL_SEND_NETFILE: { - char addr[INI_MAX_VALUE_LEN+1]; - const char* section = "netmail sent"; - ZERO_VAR(addr); - user_get_property(&cfg, useron.number, section, "address", addr); bputs(text[EnterNetMailAddress]); csi->logic=LOGIC_FALSE; - if(getstr(addr,60,K_LINE|K_EDIT)) { - if(netmail(addr,nulstr,cmd == CS_MAIL_SEND_NETFILE ? WM_FILE : 0)) { + if(getstr(str,60,K_LINE|K_EDIT)) { + if(netmail(str,nulstr,cmd == CS_MAIL_SEND_NETFILE ? WM_FILE : 0)) { csi->logic=LOGIC_TRUE; - user_set_property(&cfg, useron.number, section, "address", addr); - user_set_time_property(&cfg, useron.number, section, "localtime", time(NULL)); } } return(0); -- GitLab