From 8df25aedd728dd0dc7133cbd18fb5cb9c468efe1 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 26 Aug 2002 07:03:10 +0000 Subject: [PATCH] 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". --- src/sbbs3/smbutil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbbs3/smbutil.c b/src/sbbs3/smbutil.c index 18c1be5b2a..dc95ded114 100644 --- a/src/sbbs3/smbutil.c +++ b/src/sbbs3/smbutil.c @@ -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: "); -- GitLab