diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-12-16 17:54:16 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-12-16 17:54:16 +0000 |
| commit | a7d635fe2f04abcc3683f680f6a05ff9b11bf3aa (patch) | |
| tree | 898cca0ff2fe5fe2cdee6e6ed6bf72f23cae463a /BPQMail.c | |
| parent | 93a10a982d3fcab0c469e2805b2034bba4e59a55 (diff) | |
New upstream version 6.0.24.54+repackupstream/6.0.24.54+repack
Diffstat (limited to 'BPQMail.c')
| -rw-r--r-- | BPQMail.c | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -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
@@ -2816,6 +2830,12 @@ gotAddr: EndDialog(hDlg, LOWORD(wParam));
+#ifndef NOMQTT
+ if (MQTT)
+ MQTTMessageEvent(Msg);
+#endif
+
+
return TRUE;
}
@@ -3057,7 +3077,6 @@ static PSOCKADDR_IN psin; SOCKET sock;
-
BOOL Initialise()
{
int i, len;
@@ -3072,6 +3091,8 @@ BOOL Initialise() GetTimeZoneInformation(&TimeZoneInformation);
+ Debugprintf("%d", sizeof(struct MsgInfo));
+
_tzset();
_MYTIMEZONE = timezone;
_MYTIMEZONE = TimeZoneInformation.Bias * 60;
@@ -3383,6 +3404,8 @@ BOOL Initialise() CreatePipeThread();
GetPGConfig();
+ APIClock = 0;
+
return TRUE;
}
|
