Skip to content
Snippets Groups Projects
Commit 8df25aed authored by rswindell's avatar rswindell
Browse files

Messages posted via SMBUTIL now have the SENDERAGENT field set to AGENT_PROCESS

to help prevent the mail server (or other programs) from bouncing undeliverable
messages back to a "process".
parent d854ccb4
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,7 @@ void postmsg(char type, char* to, char* to_number, char* to_address,
int i;
long l,length;
ulong offset,crc;
ushort agent=AGENT_PROCESS;
smbmsg_t msg;
/* Read message text from stream (file or stdin) */
......@@ -298,6 +299,7 @@ void postmsg(char type, char* to, char* to_number, char* to_address,
strlwr(str);
msg.idx.from=crc16(str);
}
smb_hfield(&msg, SENDERAGENT, sizeof(agent), &agent);
if(subject==NULL) {
printf("Subject: ");
......
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