diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-12-03 00:27:57 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-12-03 00:27:57 +0000 |
| commit | 96c573931d40b6b191614c96299d66ca6217d1d8 (patch) | |
| tree | f5673406ce7bf25a975179a903f2ca661bcba7b7 /BBSUtilities.c | |
| parent | 697fde312336b04129289ed268043e641ef284cb (diff) | |
New upstream version 6.0.24.53+repackupstream/6.0.24.53+repack
Diffstat (limited to 'BBSUtilities.c')
| -rw-r--r-- | BBSUtilities.c | 80 |
1 files changed, 75 insertions, 5 deletions
diff --git a/BBSUtilities.c b/BBSUtilities.c index 82344bd..56e08a0 100644 --- a/BBSUtilities.c +++ b/BBSUtilities.c @@ -5566,14 +5566,19 @@ BOOL CreateMessage(CIRCUIT * conn, char * From, char * ToCall, char * ATBBS, cha {
if (_memicmp(ToCall, "rms:", 4) == 0)
{
- if (!FindRMS())
+ // Could be ampr.org message
+
+ if (!isAMPRMsg(ToCall))
{
- nodeprintf(conn, "*** Error - Forwarding via RMS is not configured on this BBS\r");
- return FALSE;
+ if (!FindRMS())
+ {
+ 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)
{
@@ -6877,7 +6882,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 in Flag set and NTS MPS
+ continue; // So we dont count twice if Flag set and NTS MPS
}
// if an NTS MPS, also check for any matches
@@ -6918,6 +6923,66 @@ 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
@@ -15823,6 +15888,11 @@ void SendMessageReadEvent(char * call, struct MsgInfo * Msg) }
}
+void SendMessageForwardedToM0LTE(char * call, struct MsgInfo * Msg)
+{
+}
+
+
void SendNewMessageEvent(char * call, struct MsgInfo * Msg)
{
if (reportMailEvents)
|
