Skip to content
Snippets Groups Projects
Commit 3ad82227 authored by rswindell's avatar rswindell
Browse files

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