summaryrefslogtreecommitdiff
path: root/BBSUtilities.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-11-30 11:27:28 +0000
committerDave Hibberd <hibby@debian.org>2024-11-30 11:27:28 +0000
commit93a10a982d3fcab0c469e2805b2034bba4e59a55 (patch)
treeafe8f05b6c1d33e5abb08077a93bbffafce710bf /BBSUtilities.c
parentf62edf7675f8930f39f1eb45239a674b1c3a237a (diff)
New upstream version 6.0.24.51.3+repack+really50upstream/6.0.24.51.3+repack+really50
Diffstat (limited to 'BBSUtilities.c')
-rw-r--r--BBSUtilities.c80
1 files changed, 5 insertions, 75 deletions
diff --git a/BBSUtilities.c b/BBSUtilities.c
index 56e08a0..82344bd 100644
--- a/BBSUtilities.c
+++ b/BBSUtilities.c
@@ -5566,19 +5566,14 @@ BOOL CreateMessage(CIRCUIT * conn, char * From, char * ToCall, char * ATBBS, cha
{
if (_memicmp(ToCall, "rms:", 4) == 0)
{
- // Could be ampr.org message
-
- if (!isAMPRMsg(ToCall))
+ if (!FindRMS())
{
- if (!FindRMS())
- {
- nodeprintf(conn, "*** Error - Forwarding via RMS is not configured on this BBS\r");
- return FALSE;
- }
+ nodeprintf(conn, "*** Error - Forwarding via RMS is not configured on this BBS\r");
+ return FALSE;
}
+
via=strlop(ToCall, ':');
_strupr(ToCall);
-
}
else if (_memicmp(ToCall, "rms/", 4) == 0)
{
@@ -6882,7 +6877,7 @@ int CountMessagestoForward (struct UserInfo * user)
if ((Msg->status != 'H') && (Msg->status != 'D') && Msg->type && check_fwd_bit(Msg->fbbs, BBSNumber))
{
n++;
- continue; // So we dont count twice if Flag set and NTS MPS
+ continue; // So we dont count twice in Flag set and NTS MPS
}
// if an NTS MPS, also check for any matches
@@ -6923,66 +6918,6 @@ int CountMessagestoForward (struct UserInfo * user)
return n;
}
-int CountBytestoForward (struct UserInfo * user)
-{
- // See if any messages are queued for this BBS. If so return total bytes queued
-
- int m, n=0;
- struct MsgInfo * Msg;
- int BBSNumber = user->BBSNumber;
- int FirstMessage = FirstMessageIndextoForward;
-
- if ((user->flags & F_NTSMPS))
- FirstMessage = 1;
-
- for (m = FirstMessage; m <= NumberofMessages; m++)
- {
- Msg=MsgHddrPtr[m];
-
- if ((Msg->status != 'H') && (Msg->status != 'D') && Msg->type && check_fwd_bit(Msg->fbbs, BBSNumber))
- {
- n += Msg->length;
- continue; // So we dont count twice if Flag set and NTS MPS
- }
-
- // if an NTS MPS, also check for any matches
-
- if (Msg->type == 'T' && (user->flags & F_NTSMPS))
- {
- struct BBSForwardingInfo * ForwardingInfo = user->ForwardingInfo;
- int depth;
-
- if (Msg->status == 'N' && ForwardingInfo)
- {
- depth = CheckBBSToForNTS(Msg, ForwardingInfo);
-
- if (depth > -1 && Msg->Locked == 0)
- {
- n += Msg->length;
- continue;
- }
- depth = CheckBBSAtList(Msg, ForwardingInfo, Msg->via);
-
- if (depth && Msg->Locked == 0)
- {
- n += Msg->length;
- continue;
- }
-
- depth = CheckBBSATListWildCarded(Msg, ForwardingInfo, Msg->via);
-
- if (depth > -1 && Msg->Locked == 0)
- {
- n += Msg->length;
- continue;
- }
- }
- }
- }
-
- return n;
-}
-
int ListMessagestoForward(CIRCUIT * conn, struct UserInfo * user)
{
// See if any messages are queued for this BBS
@@ -15888,11 +15823,6 @@ void SendMessageReadEvent(char * call, struct MsgInfo * Msg)
}
}
-void SendMessageForwardedToM0LTE(char * call, struct MsgInfo * Msg)
-{
-}
-
-
void SendNewMessageEvent(char * call, struct MsgInfo * Msg)
{
if (reportMailEvents)