Commit 2e19780e authored by rswindell's avatar rswindell
Browse files

When replying to an Internet e-mail which includes a REPLY-TO header field,

send the reply to the reply-to address (by default) instead of the FROM
address.
parent a279102d
......@@ -360,16 +360,19 @@ void sbbs_t::readmail(uint usernumber, int which)
quotemsg(&msg,1);
if(msg.from_net.addr==NULL)
strcpy(str,msg.from);
SAFECOPY(str,msg.from);
else if(msg.from_net.type==NET_FIDO) /* FidoNet type */
sprintf(str,"%s@%s",msg.from
SAFEPRINTF2(str,"%s@%s",msg.from
,smb_faddrtoa((faddr_t *)msg.from_net.addr,tmp));
else if(msg.from_net.type==NET_INTERNET)
strcpy(str,(char *)msg.from_net.addr);
else
sprintf(str,"%s@%s",msg.from,(char*)msg.from_net.addr);
else if(msg.from_net.type==NET_INTERNET) {
if(msg.replyto_net.type==NET_INTERNET)
SAFECOPY(str,(char *)msg.replyto_net.addr);
else
SAFECOPY(str,(char *)msg.from_net.addr);
} else
SAFEPRINTF2(str,"%s@%s",msg.from,(char*)msg.from_net.addr);
strcpy(str2,str);
SAFECOPY(str2,str);
bputs(text[Email]);
if(!getstr(str,64,K_EDIT|K_AUTODEL))
......
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