diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-30 11:27:30 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-30 11:27:30 +0000 |
| commit | d09a1686084e26be230cbddc38a2b4f435975041 (patch) | |
| tree | 2129a345b0ee29e51aaae3f817dba57caf9bae6f /BBSUtilities.c | |
| parent | 757c658adccf66102cff955a31587dff2204bb04 (diff) | |
| parent | 93a10a982d3fcab0c469e2805b2034bba4e59a55 (diff) | |
Update upstream source from tag 'upstream/6.0.24.51.3+repack+really50'
Update to upstream version '6.0.24.51.3+repack+really50'
with Debian dir 0b34b91ce1e12fbb6ea021c31ba7daa6c49e3c49
Diffstat (limited to 'BBSUtilities.c')
| -rw-r--r-- | BBSUtilities.c | 80 |
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)
|
