From eb0d36d3f67be13de74023adb6d30362d47805fe Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Fri, 11 Oct 2024 15:37:11 +0100 Subject: New upstream version 6.0.24.45 --- MailRouting.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'MailRouting.c') diff --git a/MailRouting.c b/MailRouting.c index ff6feca..5cc17e7 100644 --- a/MailRouting.c +++ b/MailRouting.c @@ -1317,6 +1317,10 @@ FULLHA: { int i = 0; + // Log My HA for debugging + + Logprintf(LOG_BBS, conn, '?', "Routing Trace. Check if reached correct area My HA is %s", HRoute); + // All elements of Helements must match Myelements while (MyElements[i] && HElements[i]) // Until one set runs out @@ -1409,6 +1413,9 @@ NOHA: // So if SendPtoMultiple is set I think I need to find the best depth then send to all with the same depth // If none are found on HA match drop through. + // But this means a message at the @BBS call will be forwarded without checking the Implied AT. So do that first + + if (SendPtoMultiple && Msg->type == 'P') { struct UserInfo * bestbbs = NULL; @@ -1425,6 +1432,16 @@ NOHA: { ForwardingInfo = bbs->ForwardingInfo; + // Check Implied AT + + if ((strcmp(ATBBS, bbs->Call) == 0)) // @BBS = BBS + { + Logprintf(LOG_BBS, conn, '?', "Routing Trace %s Matches implied AT %s", ATBBS, bbs->Call); + + CheckAndSend(Msg, conn, bbs); + return 1; + } + depth = CheckBBSHElements(Msg, bbs, ForwardingInfo, ATBBS, &HElements[0]); if (depth) -- cgit v1.2.3