summaryrefslogtreecommitdiff
path: root/MailRouting.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-10-11 15:42:00 +0100
committerDave Hibberd <hibby@debian.org>2024-10-11 15:42:00 +0100
commitf527c60884771102fa4cc94096e1c253cace5997 (patch)
tree6633bb3c2ea7442d17c0c3c64a5327e214e3ae6e /MailRouting.c
parentba9f74d1b8b94f7c5ee99e863f72aa33fb70ae6f (diff)
parent3de6b0150f1b06256a0ee3ce9a8ba529a5d306e8 (diff)
Merge branch 'debian/latest' into hibbian/latest
Diffstat (limited to 'MailRouting.c')
-rw-r--r--MailRouting.c17
1 files changed, 17 insertions, 0 deletions
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)