From 3fc3d522af7e70a8c2e3212b76e5f16c23fcbc66 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 18 Dec 2018 23:21:43 +0000
Subject: [PATCH] Change requested by Mark Lewis: accept area manager (areafix)
 netmail requests sent to "SBBSecho" again. SBBSecho used to allow this back
 in v3.02 (Nov-2017) and earlier versions, but was removed for loop-safety
 since AreaMgr notifications and responses are sent from "SBBSecho", but we
 have bot-loop protection built in, so that should be okay.

---
 src/sbbs3/sbbsecho.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sbbs3/sbbsecho.c b/src/sbbs3/sbbsecho.c
index 9389d140ab..1233478b7b 100644
--- a/src/sbbs3/sbbsecho.c
+++ b/src/sbbs3/sbbsecho.c
@@ -4368,7 +4368,9 @@ int import_netmail(const char* path, fmsghdr_t hdr, FILE* fp, const char* inboun
 		}
 	}
 
-	if(stricmp(hdr.to, FIDO_AREAMGR_NAME) == 0 || stricmp(hdr.to, FIDO_PING_NAME) == 0) {
+	if(stricmp(hdr.to, FIDO_AREAMGR_NAME) == 0 
+		|| stricmp(hdr.to, "SBBSecho") == 0
+		|| stricmp(hdr.to, FIDO_PING_NAME) == 0) {
 		fmsgbuf=getfmsg(fp,NULL);
 		if(path[0]) {
 			if(cfg.delete_netmail && opt_delete_netmail) {
@@ -4387,9 +4389,7 @@ int import_netmail(const char* path, fmsghdr_t hdr, FILE* fp, const char* inboun
 		addr.node=hdr.orignode;
 		addr.point=hdr.origpoint;
 		lprintf(LOG_INFO, "%s", info);
-		if(stricmp(hdr.from, FIDO_PING_NAME) == 0
-			|| stricmp(hdr.from, FIDO_AREAMGR_NAME) == 0
-			)
+		if(stricmp(hdr.from, hdr.to) == 0)
 			lprintf(LOG_NOTICE, "Refusing to auto-reply to NetMail from %s", hdr.from);
 		else {
 			if(stricmp(hdr.to, FIDO_PING_NAME) == 0) {
-- 
GitLab