diff options
Diffstat (limited to 'MailRouting.c')
| -rw-r--r-- | MailRouting.c | 17 |
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)
|
