summaryrefslogtreecommitdiff
path: root/BPQMail.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-11-30 21:42:45 +0000
committerDave Hibberd <hibby@debian.org>2024-11-30 21:42:45 +0000
commit3a600bee231fc20c7a71bcc78465a28447ac1bb4 (patch)
tree9b1a58a5069afbd52a1044537ce29483c21934f0 /BPQMail.c
parentd09a1686084e26be230cbddc38a2b4f435975041 (diff)
parentd1c36fce6e52b94d2df9c0eb969c1d72947d1284 (diff)
Update upstream source from tag 'upstream/6.0.24.52+repack'
Update to upstream version '6.0.24.52+repack' with Debian dir 0b34b91ce1e12fbb6ea021c31ba7daa6c49e3c49
Diffstat (limited to 'BPQMail.c')
-rw-r--r--BPQMail.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/BPQMail.c b/BPQMail.c
index 08d5818..70061d7 100644
--- a/BPQMail.c
+++ b/BPQMail.c
@@ -1143,6 +1143,8 @@
// Semaphore calls to SaveConfig
// Include SERVIC as valid from call (for Winlink Service messages) (49)
// Attempt to detect line draw characters in Webmail (50)
+// Fix sending ampr.org mail when RMS is not enabled (51)
+// Send forwarding info to packetnodes.spots.radio database (51)
#include "bpqmail.h"
#include "winstdint.h"
@@ -1161,6 +1163,8 @@ FARPROCZ pGetLOC;
FARPROCX pRefreshWebMailIndex;
FARPROCX pRunEventProgram;
FARPROCX pGetPortFrequency;
+FARPROCX pSendWebRequest;
+FARPROCX pGetLatLon;
BOOL WINE = FALSE;
@@ -1385,6 +1389,7 @@ char * CheckToAddress(CIRCUIT * conn, char * Addr);
BOOL CheckifPacket(char * Via);
int GetHTMLForms();
VOID GetPGConfig();
+void SendBBSDataToPktMap();
struct _EXCEPTION_POINTERS exinfox;
@@ -1936,6 +1941,8 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
pRefreshWebMailIndex = GetProcAddress(ExtDriver,"_RefreshWebMailIndex@0");
pRunEventProgram = GetProcAddress(ExtDriver,"_RunEventProgram@8");
pGetPortFrequency = GetProcAddress(ExtDriver,"_GetPortFrequency@8");
+ pSendWebRequest = GetProcAddress(ExtDriver,"_SendWebRequest@16");
+ pGetLatLon = GetProcAddress(ExtDriver,"_GetLatLon@8");
if (pGetLOC)
@@ -2183,6 +2190,13 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Debugprintf("|Enter HouseKeeping");
DoHouseKeeping(FALSE);
}
+
+ if (APIClock < NOW)
+ {
+ SendBBSDataToPktMap();
+ APIClock = NOW + 7200; // Every 2 hours
+ }
+
tm = gmtime(&NOW);
if (tm->tm_wday == 0) // Sunday
@@ -3057,7 +3071,6 @@ static PSOCKADDR_IN psin;
SOCKET sock;
-
BOOL Initialise()
{
int i, len;
@@ -3383,6 +3396,9 @@ BOOL Initialise()
CreatePipeThread();
GetPGConfig();
+
+ APIClock = 0;
+
return TRUE;
}