From 96712a1c350135c16eb30e187fba7e6b9b01f769 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Fri, 12 Nov 2021 14:07:56 -0800
Subject: [PATCH] Generate a MSGID kludge for netmail messages created by
 SBBSecho

The "serialno" field is a bad/naive one (a time_t value), but this is really just an experiment for Ragnarok to see if this fixes issue #306 (with hotdoged receiving AreaFix responses/notices).
---
 src/sbbs3/sbbsecho.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sbbs3/sbbsecho.c b/src/sbbs3/sbbsecho.c
index 69cff0185a..12c32710c0 100644
--- a/src/sbbs3/sbbsecho.c
+++ b/src/sbbs3/sbbsecho.c
@@ -1117,6 +1117,7 @@ int create_netmail(const char *to, const smbmsg_t* msg, const char *subject, con
 			}
 			fprintf(fp,"\r");
 		}
+		fprintf(fp, "\1MSGID: %s %08lx\r", smb_faddrtoa(&faddr, NULL), time32(NULL));
 	} else {
 		if(msg->ftn_msgid != NULL)
 			fprintf(fp, "\1MSGID: %.256s\r", msg->ftn_msgid);
-- 
GitLab