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

Set the REPLYTONETADDR to just the address portion of non-Internet

addresses (e.g. FidoNet and QWK) using the new smblib feature.
parent 3f587dd7
No related branches found
No related tags found
No related merge requests found
......@@ -50,9 +50,8 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode)
char tmp[512];
char pid[128];
char* editor=NULL;
ushort msgattr=0;
uint16_t msgattr=0;
uint16_t xlat=XLAT_NONE;
ushort nettype;
int i,j,x,file;
long l;
long length;
......@@ -301,11 +300,7 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode)
if(useron.misc&NETMAIL) {
if(useron.rest&FLAG('G'))
smb_hfield_str(&msg,REPLYTO,useron.name);
nettype=smb_netaddr_type(useron.netmail);
if(nettype!=NET_NONE && nettype!=NET_UNKNOWN) {
smb_hfield(&msg,REPLYTONETTYPE,sizeof(nettype),&nettype);
smb_hfield_str(&msg,REPLYTONETADDR,useron.netmail);
}
smb_hfield_netaddr(&msg,REPLYTONETADDR,useron.netmail,NULL);
}
/* Security logging */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment