Skip to content
Snippets Groups Projects
Commit 4ef5bfaf authored by rswindell's avatar rswindell
Browse files

Added char* smbmsg_t.reverse_path: stores the SMTP reverse path (if specified

by a header field), or the SENDERNETADDR otherwise.
parent 05f72177
No related branches found
No related tags found
No related merge requests found
......@@ -807,6 +807,9 @@ int SMBCALL smb_getmsghdr(smb_t* smb, smbmsg_t* msg)
case RFC822REPLYID:
msg->reply_id=msg->hfield_dat[i];
break;
case SMTPREVERSEPATH:
msg->reverse_path=msg->hfield_dat[i];
break;
case USENETPATH:
msg->path=msg->hfield_dat[i];
break;
......@@ -838,6 +841,11 @@ int SMBCALL smb_getmsghdr(smb_t* smb, smbmsg_t* msg)
smb_freemsgmem(msg);
return(-7);
}
/* If no reverse path specified, use sender's address */
if(msg->reverse_path == NULL)
msg->reverse_path = msg->from_net.addr;
return(0);
}
......
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