forked from g8bpq/linbpq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBPQMail.c.bak
3651 lines (2692 loc) · 86.3 KB
/
BPQMail.c.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Mail and Chat Server for BPQ32 Packet Switch
//
//
// Version 1.0.0.17re
// Split Messasge, User and BBS Editing from Main Config.
// Add word wrap to Console input and output
// Flash Console on chat user connect
// Fix processing Name response in chat mode
// Fix processing of *RTL from station not defined as a Chat Node
// Fix overlength lines ln List responses
// Housekeeping expires BIDs
// Killing a message removes it from the forwarding counts
// Version 1.0.0.18
// Save User Database when name is entered or updated so it is not lost on a crash
// Fix Protocol Error in Compressed Forwarding when switching direction
// Add Housekeeping results dialog.
// Version 1.0.0.19
// Allow PACLEN in forward scripts.
// Store and forward messages with CRLF as line ends
// Send Disconnect after FQ ( for LinFBB)
// "Last Listed" is saved if MailChat is closed without closing Console
// Maximum acceptable message length can be specified (in Forwarding Config)
// Version 1.0.0.20
// Fix error in saving forwarding config (introduced in .19)
// Limit size of FBB forwarding block.
// Clear old connection (instead of new) if duplicate connect on Chat Node-Node link
// Send FA for Compressed Mail (was sending FB for both Compressed and Uncompressed)
// Version 1.0.0.21
// Fix Connect Script Processing (wasn't waiting for CONNECTED from last step)
// Implement Defer
// Fix MBL-style forwarding
// Fix Add User (Params were not saved)
// Add SC (Send Copy) Command
// Accept call@bbs as well as call @ bbs
// Version 1.0.0.22
// Implement RB RP LN LR LF LN L$ Commands.
// Implement QTH and ZIP Commands.
// Entering an empty Title cancels the message.
// Uses HomeBBS field to set @ field for local users.
// Creates basic WP Database.
// Uses WP to lookup @ field for non-local calls.
// Console "Actions" Menu renamed "Options".
// Excluded flag is actioned.
// Asks user to set HomeBBS if not already set.
// Fix "Shrinking Message" problem, where message got shorter each time it was read Initroduced in .19).
// Flash Server window when anyone connects to chat (If Console Option "Flash on Chat User Connect" set).
// Version 1.0.0.23
// Fix R: line scan bug
// Version 1.0.0.24
// Fix closing console window on 'B'.
// Fix Message Creation time.
// Enable Delete function in WP edit dialog
// Version 1.0.0.25
// Implement K< and K> commands
// Experimental support for B1 and B2 forwarding
// Experimental UI System
// Fix extracting QTH from WP updates
// Version 1.0.0.26
// Add YN etc responses for FBB B1/B2
// Version 1.0.0.27
// Fix crash if NULL received as start of a packet.
// Add Save WP command
// Make B2 flag BBS-specific.
// Implement B2 Send
// Version 1.0.0.28
// Fix parsing of smtp to addresses - eg smtp:[email protected]
// Flag messages as Held if smtp server rejects from or to addresses
// Fix Kill to (K> Call)
// Edit Message dialog shows latest first
// Add chat debug window to try to track down occasional chat connection problems
// Version 1.0.0.29
// Add loads of try/excspt
// Version 1.0.0.30
// Writes Debug output to LOG_DEBUG_X and Monitor Window
// Version 1.0.0.32
// Allow use of GoogleMail for ISP functions
// Accept SYSOP as alias for SYSOPCall - ie user can do SP SYSOP, and it will appear in sysop's LM, RM, etc
// Email Housekeeping Results to SYSOP
// Version 1.0.0.33
// Housekeeping now runs at Maintenance Time. Maintenance Interval removed.
// Allow multiple numbers on R and K commands
// Fix L command with single number
// Log if Forward count is out of step with messages to forward.
// UI Processing improved and F< command implemented
// Version 1.0.0.34
// Semaphore Chat Messages
// Display Semaphore Clashes
// More Program Error Traps
// Kill Messages more than BIDLifetime old
// Version 1.0.0.35
// Test for Mike - Remove B1 check from Parse_SID
// Version 1.0.0.36
// Fix calculation of Housekeeping Time.
// Set dialog box background explicitly.
// Remove tray entry for chat debug window.
// Add date to log file name.
// Add Actions Menu option to disable logging.
// Fix size of main window when it changes between versions.
// Version 1.0.0.37
// Implement Paging.
// Fix L< command (was giving no messages).
// Implement LR LR mmm-nnn LR nnn- (and L nnn-)
// KM should no longer kill SYSOP bulls.
// ISP interfaces allows SMTP Auth to be configured
// SMTP Client would fail to send any more messages if a connection failed
// Version 1.0.0.38
// Don't include killed messages in L commands (except LK!)
// Implement l@
// Add forwarding timebands
// Allow resizing of main window.
// Add Ver command.
// Version 1.0.1.1
// First Public Beta
// Fix part line handling in Console
// Maintenance deletes old log files.
// Add option to delete files to the recycle bin.
// Version 1.0.2.1
// Allow all Node SYSOP commands in connect scripts.
// Implement FBB B1 Protocol with Resume
// Make FBB Max Block size settable for each BBS.
// Add extra logging when Chat Sessions refused.
// Fix Crash on invalid housekeeping override.
// Add Hold Messages option.
// Trap CRT Errors
// Sort Actions/Start Forwarding List
// Version 1.0.2.2
// Fill in gaps in BBS Number sequence
// Fix PE if ctext contains }
// Run Houskeeping at startup if previous Housekeeping was missed
// Version 1.0.2.3
// Add configured nodes to /p listing
// Version 1.0.2.4
// Fix RMS (it wanted B2 not B12)
// Send messages if available after rejecting all proposals
// Dont try to send msg back to originator.
// Version 1.0.2.5
// Fix timeband processing when none specified.
// Improved Chat Help display.
// Add helpful responses to /n /q and /t
// Version 1.0.2.6
// Kill Personal WP messages after processing
// Make sure a node doesnt try to "join" or "leave" a node as a user.
// More tracing to try to track down lost topic links.
// Add command recall to Console
// Show users in new topic when changing topic
// Add Send From Clipboard" Action
// Version 1.0.2.7
// Hold messages from the future, or with invalid dates.
// Add KH (kill held) command.
// Send Message to SYSOP when a new user connects.
// Version 1.0.2.8
// Don't reject personal message on Dup BID unless we already have an unforwarded copy.
// Hold Looping messages.
// Warn SYSOP of held messages.
// Version 1.0.2.9
// Close connecton on receipt of *** DONE (MBL style forwarding).
// Improved validation in link_drop (Chat Node)
// Change to welcome prompt and Msg Header for Outpost.
// Fix Connect Script processing for KA Nodes
// Version 1.0.3.1
// Fix incorrect sending of NO - BID.
// Fix problems caused by a user being connected to more than one chat node.
// Show idle time on Chat /u display.
// Rewrite forwarding by HA.
// Add "Bad Words" Test.
// Add reason for holding to SYSOP "Message Held" Message.
// Make topics case-insensitive.
// Allow SR for smtp mail.
// Try to fix some user's "Add User" problem.
// Version 1.0.3.2
// Fix program error when prcessing - response in FBB forwarding.
// Fix code to flag messages as sent.
// Version 1.0.3.3
// Attempt to fix message loop on topic_change
// Fix loop if compressed size is greater than 32K when receiving with B1 protocol.
// Fix selection of B1
// Version 1.0.3.4
// Add "KISS ONLY" Flag to R: Lines (Needs Node Version 4.10.12 (4.10l) or above)
// Add Basic NNTP Interface
// Fix possible loop in lzhuf encode
// Version 1.0.3.5
// Fix forwarding of Held Messages
// More attempts to fix Chat crashes.
// Limit join/leave problem with mismatched nodes.
// Add Chat Node Monitoring System.
// Change order of elements in nntp addresses (now to.at, was at.to)
// Version 1.0.3.6
// Restart and Exit if too many errors
// Fix forwarding of killed messages.
// Fix Forwarding to PaKet.
// Fix problem if BBS signon contains words from the "Fail" list
// Version 1.0.3.7
// re-fix loop if compressed size is greater than 32K - reintroduced in 1.0.3.4
// Add last message to edit users
// Change Console and Monitor Buffer sizes
// Don't flag msg as 'Y' on read if it was Held or Killed
// Version 1.0.3.8
// Don't connect if all messages for a BBS are held.
// Hold message if From or To are missing.
// Fix parsing of /n and /q commands
// fix possible loop on changing name or qth
// Version 1.0.3.9
// More Chat fixes and monitoring
// Added additional console for chat
// Version 1.0.3.10
// Fix for corruption of CIrcuit-Node chain.
// Version 1.0.3.11
// Fix flow control for SMTP and NNTP
// Version 1.0.3.12
// Fix crash in SendChatStatus if no Chat Links Defined.
// Disable Chat Mode if there is no ApplCall for ChatApplNum,
// Add Edit Message to Manage Messages Dialog
// NNTP needs authentication
// Version 1.0.3.13
// Fix Chat ApplCall warning when ChatAppl = 0
// Add NNTP NEWGROUPS Command
// Fix MBL Forwarding (remove extra > prompt after SP)
// Version 1.0.3.14
// Fix topic switch code.
// Send SYSOP messages on POP3 interface if User SYSOP flag is set.
// NNTP only needs Authentication for posting, not reading.
// Version 1.0.3.15
// Fix reset of First to Forward after househeeping
// Version 1.0.3.16
// Fix check of HA for terminating WW
// MBL Mode remove extra > prompts
// Fix program error if WP record has unexpected format
// Connect Script changes for WINMOR
// Fix typo in unconfigured node has connected message
// Version 1.0.3.17
// Fix forwarding of Personals
// Version 1.0.3.18
// Fix detection of misconfigured nodes to work with new nodes.
// Limit connection attempt rate when a chat node is unavailable.
// Fix Program Error on long input lines (> ~250 chars).
// Version 1.0.3.19
// Fix Restart of B2 mode transfers.
// Fix error if other end offers B1 and you are configured for B2 only.
// Version 1.0.3.20
// Fix Paging in Chat Mode.
// Report Node Versions.
// Version 1.0.3.21
// Check node is not already known when processing OK
// Add option to suppress emailing of housekeeping results
// Version 1.0.3.22
// Correct Version processing when user connects via the network
// Add time controlled forwarding scripts
// Version 1.0.3.23
// Changes to RMS forwarding
// Version 1.0.3.24
// Fix RMS: from SMTP interface
// Accept RMS/ instead of RMS: for Thunderbird
// Version 1.0.3.25
// Accept smtp: addresses from smtp client, and route to ISP gateway.
// Set FROM address of messages from RMS that are delivered to smtp client so a reply will go back via RMS.
// Version 1.0.3.26
// Improve display of rms and smtp messages in message lists and message display.
// Version 1.0.3.27
// Correct code that prevents mail being retured to originating BBS.
// Tidy stuck Nodes and Topics when all links close
// Fix B2 handling of @ to TO Address.
// Version 1.0.3.28
// Ensure user Record for the BBS Call has BBS bit set.
// Don't send messages addressed @winlink.org if addressee is a local user with Poll RMS set.
// Add user configurable welcome messages.
// Version 1.0.3.29
// Add AUTH feature to Rig Control
// Version 1.0.3.30
// Process Paclink Header (;FW:)
// Version 1.0.3.31
// Process Messages with attachments.
// Add inactivity timeout to Chat Console sessions.
// Version 1.0.3.32
// Fix for Paclink > BBS Addresses
// Version 1.0.3.33
// Fix multiple transfers per session for B2.
// Kill messages eent to paclink.
// Add option to forward messages on arrival.
// Version 1.0.3.34
// Fix bbs addresses to winlink.
// Fix adding @winlink.org to imcoming paclink msgs
// Version 1.0.3.35
// Fix bbs addresses to winlink. (Again)
// Version 1.0.3.36
// Restart changes for RMS/paclink
// Version 1.0.3.37
// Fix for RMS Express forwarding
// Version 1.0.3.38
// Fixes for smtp and lower case packet addresses from Airmail
// Fix missing > afer NO - Bid in MBL mode
// Version 1.0.3.39
// Use ;FW: for RMS polling.
// Version 1.0.3.40
// Add ELSE Option to connect scripts.
// Version 1.0.3.41
// Improved handling of Multiple Addresses
// Add user colours to chat.
// Version 1.0.3.42
// Poll multiple SSID's for RMS
// Colour support for BPQTEerminal
// New /C chat command to toggle colour on or off.
// Version 1.0.3.43
// Add SKIPPROMPT command to forward scripts
// Version 1.0.4.1
// Non - Beta Release
// Fix possible crash/corruption with long B2 messages
// Version 1.0.4.2
// Add @winlink.org to the B2 From addresss if it is just a callsign
// Route Flood Bulls on TO as well as @
// Version 1.0.4.3
// Handle Packet Addresses from RMS Express
// Fix for Housekeeping B$ messages
// Version 1.0.4.4
// Remove B2 header and all but the Body part from messages forwared using MBL
// Fix handling of ;FW: from RMS Express
// Version 1.0.4.5
// Disable Paging on forwarding sessions.
// Kill Msgs sent to RMS Exxpress
// Add Name to Chat *** Joined msg
// Version 1.0.4.6
// Pass smtp:winlink.org messages from Airmail to local user check
// Only apply local user check to RMS: messages @winlink.org
// Check locally input smtp: messages for local winlink.org users
// Provide facility to allow only one connect on a port
// Version 1.0.4.8
// Only reset last listed on L or LR commands.
// Version 1.0.4.9
// Fix error in handling smtp: messages to winlink.org addresses from Airmail
// Version 1.0.4.10
// Fix Badwords processing
// Add Connect Script PAUSE command
// Version 1.0.4.11
// Suppress display and listing of held messages
// Add option to exclude SYSOP messages from LM, KM, etc
// Fix crash whan receiving messages with long lines via plain text forwarding
// Version 1.0.4.12 Jul 2010
// Route P messages on AT
// Allow Applications above 8
// Version 1.0.4.13 Aug 2010
// Fix TidyString for addresses of form John Wiseman <[email protected]>
// Add Try/Except around socket routines
// Version 1.0.4.14 Aug 2010
// Trap "Error - TNC Not Ready" in forward script response
// Fix restart after program error
// Add INFO command
// Add SYSOP-configurable HELP Text.
// Version 1.0.4.15 Aug 2010
// Semaphore Connect/Disconnect
// Semaphore RemoveTempBIDS
// Version 1.0.4.16 Aug 2010
// Remove prompt after receiving unrecognised line in MBL mode. (for MSYS)
// Version 1.0.4.17 Aug 2010
// Fix receiving multiple messages in FBB Uncompressed Mode
// Try to trap phantom chat node connections
// Add delay to close
// Version 1.0.4.18 Aug 2010
// Add "Send SYSTEM messages to SYSOP Call" Option
// set fwd bit on local winlink.org msgs if user is a BBS
// add winlink.org to from address of messages from WL2K that don't already have an @
// Version 1.0.4.19 Sept 2010
// Build a B2 From: address if possible, so RMS Express can reply to packet messages.
// Fix handling of addresses from WL2K with SSID's
// L@ now only matches up to length of input string.
// Remove "Type H for help" from login prompt.
// Version 1.0.4.20 Sept 2010
// Process FBB 'E' response
// Handle FROM addresses with an @BBS
// Fix FROM addresses with @ on end.
// Extend delay before close after sending FQ on winmor/pactor sessions.
// Version 1.0.4.21 Sept 2010
// Fix handling B2 From: with an HA
// Add "Expert User" welcome message.
// Version 1.0.4.22 Sept 2010
// Version 1.0.4.23 Oct 2010
// Add Dup message supression
// Dont change B2 from if going to RMS
// Version 1.0.4.24 Oct 2010
// Add "Save Registry Config" command
// Add forwarding on wildcarded TO for NTS
// Add option to force text mode forwarding
// Define new users as a temporaty BBS if SID received in reply to Name prompt
// Reduce delay before sending close after sending FQ on pactor sessions
// Fix processing of MIME boundary from GMail
// Send /ex instead of ctrl/z for text mode forwarding
// Send [WL2K-BPQ... SID if user flagged as RMS Express
// Fix Chat Map reporting when more than one AXIP port
// Add Message State D for NTS Messages
// Forward messages in priority order - T, P, B
// Add Reject and Hold Filters
// Fix holding messages to local RMS users when received as part of a multiple addressee message
// Version 1.0.4.25 Nov 2010
// Renumbered for release
// Add option to save Registry Config during Housekeeping
// Version 1.0.4.26 Nov 2010
// Fix F> loop when doing MBL forwarding between BPQ BBSes
// Allow multiple To: addresses, separated by ;
// Allow Houskeeping Lifetime Overrides to apply to Unsent Messages.
// Set Unforwarded Bulls to status '$'
// Accept MARS and USA as continent codes for MARS Packet Addresses
// Add option to send Non-delivery notifications.
// Version 1.0.4.27 Dec 2010
// Add MSGTYPES fwd file option
// Version 1.0.4.28 Dec 2010
// Renumbered to for release
// Version 1.0.4.30 Dec 2010
// Fix rescan requeuing where bull was rejected by a BBS
// Fiz flagging bulls received by NNTP with $ if they need to be forwarded.
// Add Chat Keepalive option.
// Fix bug in non-delivery notification.
// Version 1.0.4.32 Jan 2011
// Allow "Send from Clipboard" to send to rms: or smtp:
// Allow messages received via SMTP to be bulls (TO preceeded by bull/) or NTS (to nnnnn@NTSXX or [email protected])
// Fix corruption of messages converted to B2 if body contains binary data
// Fix occasional program error when forwarding B2 messages
// Limit FBB protocol data blocks to 250 to try to fix restart problem.
// Add F2 to F5 to open windows.
// Version 1.0.4.33 Jan 2011
// Fix holding old bulls with forwarding info.
// Version 1.0.4.33 Jan 2011
// Prevent transfer restarting after a program error.
// Allow Housekeeping to kill held messages.
// Version 1.0.4.35 Jan 2011
// Add Size limits for P and T messages to MSGTYPES command
// Fix Error in MBL processing when blank lines received (introduced in .33)
// Trap possible PE in Send_MON_Datagram
// Don't use paging on chat sessions
// Version 1.0.4.36 Jan 2011
// Fix error after handling first FBB block.
// Add $X and $x welcome message options.
// Version 1.0.4.37 Jan 2011
// Change L command not to list the last message if no new ones are available
// Add LC I I@ IH IZ commands
// Add option to send warning to sysop if forwarded P or T message has nowhere to go
// Fixes for Winpack Compressed Download
// Fix Houskeeping when "Apply Overrides to Unsent Bulls" is set.
// Add console copy/paste.
// Add "No Bulls" Option.
// Add "Mail For" Beacon.
// Tidied up Tab order in config dialogs to help text-to-speech programs.
// Limit MaxMsgno to 99000.
// Version 1.0.4.38 Feb 2011
// Renumbered for release
// Version 1.0.4.40 April 2011
// Add POLLRMS command
// Changes for Vista/Win7 (registry key change)
// Workaround for changes to RMS Express
// Fix AUTH bug in SMTP server
// Add filter to Edit Messages dialog
// Version 1.0.4.41 April 2011
// Extend B2 proposals to other BPQMail systems so Reject Filter will work.
// Add Edit User Command
// Use internal Registry Save routine instead of Regedit
// Fix Start Forward/All
// Allow Winpack Compressed Upload/Download if PMS flag set (as well as BBS flag)
// Add FWD SYSOP command
// Fix security on POLLRMS command
// Add AUTH command
// Leave selection in same place after Delete User
// Combine SMTP server messages to multiple WL2K addresses into one message to WL2k
// Add option to show name as well as call on Chat messages
// Fix program error if you try to define more than 80 BBS's
// Version 1.0.4.45 October 2011
// Changes to program error reporting.
// BBS "Returh to Node" command added
// Move config to "Standard" location (BPQ Directory/BPQMailChat) .
// Fix crash if "Edit Message" clicked with no message selected.
// Version 1.0.4.46 October 2011
// Fix BaseDir test when BaseDir ends with \ or /
// Fix long BaseDir values (>50 chars)
// Version 1.4.47.1 January 2012
// Call CloseBPQ32 on exit
// Add option to flash window instead of sounding bell on Chat Connects
// Add ShowRMS SYSOP command
// Update WP with I records from R: lines
// Send WP Updates
// Fix Paclen on Pactor-like sessions
// Fix SID and Prompt when RMS Express User is set
// Try to stop loop in Program Error/Restarting code
// Trap "UNABLE TO CONNECT" response in connect script
// Add facility to print messages or save them to a text file
// Version 1.4.48.1 January 2012
// Add Send Message (as well as Send from Clipboard)
// Fix Email From: Address when forwaring using B2
// Send WP from BBSCALL not SYSOPCALL
// Send Chat Map reports via BPQ32.dll
// Version 1.4.49.1 February 2012
// Fix Setting Paclink mode on SNOS connects
// Remove creation of debugging file for each message
// Add Message Export and Import functions
// All printing of more than one message at a time
// Add command to toggle "Expert" status
// Version 1.4.50.1 February 2012
// Fix forwarding to RMS Express users
// Route messages received via B2 to an Internet email address to RMS
// Add Reverse Poll interval
// Add full FROM address to POP3 messages
// Include HOMEBBS command in Help
// Version 1.4.51.1 June 2012
// Allow bulls to be sent from RMS Express.
// Handle BASE64 and Quoted-printable encoding of single part messages
// Work round for RMS Express "All proposals rejected" Bug.
// Version 1.4.52.1 August 2012
// Fix size limit on B2 To List when sending to multiple dests
// Fix initialisation of DIRMES.SYS control record
// Allow use of Tracker and UZ7HO ports for UI messages
// Version 1.4.53.1 September 2012
// Fix crash if R: line with out a CR found.
// Version 1.4.54.1 ?? 2012
// Add configurable prompts
// Fix KISS-Only Test
// Send EHLO instead of HELO when Authentication is needed on SMTP session
// Add option to use local tome for bbs forwarding config
// Allow comment lines (; or @) or single space in fwd scripts
// Fix loss of forwarding info if SAVE is clicked before selecting a call
// Version 1.4.55.1 June 2013
// Add option to remove users that have not connected for a long time.
// Add l@ smtp:
// Fix From: sent to POP3 Client when meaages is from RMS
// Display Email From on Manage Messages
// Version 1.4.56.1 July 2013
// Add timeout
// Verify prompts
// Add IDLETIME command
// Version 1.4.57.1
// Change default IDLETIME
// Fix display of BBS's in Web "Manage Messages"
// Add separate househeeping lifetines for T messages
// Don't change flag on forwarded or delivered messages if they sre subsequently read
// Speed up processing, mainly to stop RMS Express timing out when connecting via Telnet
// Don't append winlink.org to RMS Express or Paclink addresses if RMS is not configured
// Fix receiving NTS messages via B2
// Add option to send "Mail For", but not FBB Headers
// Fix corruption caused with Subject longer than 60 bytes reveived from Winlink systems
// Fix Endian bug in FBB Compression code
// Version 1.4.58.1
// Change control of appending winlink.org to RMS Express or Paclink addresses to a user flag
// Lookup HomeBBS and WP for calls without a via received from RMS Express or Paclink
// Treat call@bpq as request to look up address in Home BBS/WP for messages received from RMS Express or Paclink
// Collect stats by message type
// Fix Non-Delivery notifications to SMTP messages
// Add Message Type Stats to BBS Trafic Report
// Add "Batch forward to email"
// Add EXPORT command
// Allow more BBS records
// Allow lower case connect scripts
// Fix POP3 LIST command
// Fix MIME Multipart Alternate with first part Base64 or Quoted Printable encoding
// Fix duplicates of SP SYSOP@WW Messages
// Add command line option (tidymail) to delete redundant Mail files
// Add command line option (nohomebbs) to suppress HomeBBS prompt
// 59 April 2014
// Add FLARQ Mail Mode
// Fix possible crash saving restart data
// Add script command ADDLF for connect scripts over Telnet
// Add recogniton of URONODE connected message
// Add option to stop Name prompt
// Add new RMS Express users with "RMS Express User" flag set
// Validate HTML Pages
// Add NTS swap file
// Add basic File list and read functions
// Fix Traffic report
// 60
// Fix security hole in readfile
// 61 August 2014
// Set Messages to NTS:nnnnn@NTSXX to type 'T' and remove NTS
// Dont treat "Attempting downlink" as a failure
// Add option to read messages during a list
// Fix crash during message renumber on MAC
// Timeout response to SID to try to avoid hang on an incomplete connection.
// Save config in file instead of registry
// Fix Manage Messages "EXPORT" option and check filename on EXPORT command
// Fix reverse forward prompt in MBL mode.
// Fix From address in POP3 messages where path is @winlink.org
// Fix possible program error in T message procesing
// Add MaxAge param (for incoming Bulls)
//62 November 2014
// Add ZIP and Permit Bulls flag to Manage Users
// Allow users to kill their own B and anyone to kill T messages
// Improve saving of "Last Listed"
// Fix LL when paging
// Send Date received in R: Line (should fix B2 message restarts)
// Fix occasional crash in terminal part line processing
// Add "SKIPCON" forwarding command to handle nodes that include "Connected" in their CTEXT
// Fix possible retry loop when message is deferred (FBB '=' response);
// Don't remove Attachments from received bulls.
//63 Feb 2015
// Fix creating Bulls from RMS Express messages.
// Fix PE if message with no To: received.
// Fix setting "RMS Express User" flag on new connects from RMS Express
// Fix deleting 'T' messages downloaded by RMS Express
// Include MPS messages in count of messages to forward.
// Add new Welcome Message variable $F for messages to forward
// Fix setting Type in B2 header when usong NTS: or BULL:
// Remove trailing spaces from BID when Creating Message from Clipboard.
// Improved handling of FBB B1/B2 Restarts.
//64 September 2015
// Fix Message Type in msgs from RMS Express to Internet
// Reopen Monitor window if open when program list closed
// Only apply NTS alias file to NTS Messages
// Fix failure to store some encrypted ISP passwords
// Allow EDITUSER to change "RMS Express User" flag
// Fix reporting of Config File errors
// Fix Finding MPS Messages (First to Forward was being used incorrectly)
// Add "Save Attachment" to Web Mgmt Interface
// Support Secure Signon on Forwarding sessions to CMS
// Save Forwarding config when BBS flag on user is cleared
// Pass internally generated SYSOP messages through routing process
// Add POP3 TOP command.
// Don't set 'T' messages to 'Y' when read.
// Add optional temporary connect script on "FWD NOW" command
// Add automatic import facility
// Accept RMS mail to BBS Call even if "Poll RMS" not set.
// 65 November 2015
// Fix loading Housekeeping value for forwarded bulls.
// Fix re-using Fwd script override in timer driven forwarding.
// Add ampr.org handling
// Add "Dont forward" match on TO address for NTS
// Allow listing a combinatiom of state and type, such as LNT or LPF
// Fix handling ISP messages from gmail without a '+'
// Add basic WebMail support
// 66
// Autoimport messages as Dummy Call, not SYSOP Call
// Add "My Messages" display option to WebMail
// Create .csv extract of User List during hourekeeping.
// Fix processing of NTS Alising of @ Addresses
// Don't reroute Delivered NTS Messages
// Add option to stop users killing T messages
// Add multicast Receive
// Fix initialising new message database format field
// Fix "Forward Messages to BBS Call" option.
// Add Filter WP Bulls option and allow multiple WP "TO" addresses
// Fix deleting P WP messages for other stations
// Fix saving blank lines in forwarding config
// Fix paging on L@ and l<
// Fix removing DELETE from IMPORT XXX DELETE and allow multiple IMPORT lines in script
// Run DeleteRedundantMessages before renumbering messages
// Connect script now tries ELSE lines if prompt not received from remote BBS
// Send connecting call instead of BBS Name when connecting to CMS server.
// Add BID filter to Manage Messages
// Fix handling of over long suject lines in IMPORT
// Allow comments before ELSE in connect script
// Add Copy and Clear to Multicast Window
// Fix possible duplicate messages with MBL forwarding
// Set "Permit EMail" on IMPORT dummy User.
// Fix repeated running of housekeeping if clock is stepped forward.
// Fix corruption of CMS Pass field by Web interface
// Kill B2 WP bulls if FilterWPBulls set
// Include Message Type in BPQ B2 proposal extensions
// 6.0.14.1 July 2017
// Fix corruption of BBSNumber if RMS Ex User and BBS both checked
// Tread B messages without an AT as Flood.
// Make sure Message headers are always saved to disk when a message status changes
// Reject message instead of failing session if TO address too long in FBB forwarding
// Fix error when FBB restart data exactly fills a packet.
// Fix possible generation of msg number zero in send nondlivery notification
// Fix problem with Web "Manage Messages" when stray message number zero appears
// Fix Crash in AMPR forward when host missing from VIA
// Fix possible addition of an spurious password entry to the ;FW: line when connecting to CMS
// Fix test for Status "D" in forward check.
// Don't cancel AUTH on SMTP RSET
// Fix "nowhere to go" message on some messages sent to smtp addresses
// Add @ from Home BBS or WP is not spcified in "Send from Clipboard"
// 6.0.15.1 Feb 2018
// Fix PE if Filename missing from FILE connect script command
// Suppress reporting errors after receiving FQ
// Fix problem caused by trailing spaces on callsign in WP database
// Support mixed case WINLINK Passwords
// 6.0.16.1 March 2018
// Make sure messages sent to WL2K don;'t have @ on from: address
// If message to saildocs add R: line as an X header instead of to body
// Close session if more than 4 Invalid Commmad responses sent
// Report TOP in POP3 CAPA list. Allows POP3 to work with Windows Mail client
// 6.0.17.1 November 2018
// Add source routing using ! eg sp [email protected]!gm8bpq to send via RMS on gm8bpq
// Accept an internet email address without rms: or smtp:
// Fix "Forward messages for BBS Call" when TO isn't BBS Call
// Accept NNTP commands in either case
// Add NNTP BODY command
// Timeout POP or SMTP TCP connections that are open too long
// Add YAPP support
// Fix connect script when Node CTEXT contains "} BBS "
// Fix handling null H Route
// Detect and correct duplicate BBS Numbers
// Fix problem if BBS requests FBB blocked forwarding without compression (ie SID of F without B)
// Fix crash if YAPP entered without filenmame and send BBS prompt after YAPP error messages
// Add support for Winlink HTML Forms to WebMail interface
// Update B2 header when using NTS alias file with B2 messages
// 6.0.18.1 January 2019
// Ensure callsigns in WP database are upper case.
// Various fixes for Webmail
// Fix sending direct to ampr.org addresses
// Use SYSOP Call as default for Webmail if set
// Preparations for 64 bit version
// 6.0.19.1 September 2019
// Trap missing HTML reply Template or HTML files
// Fix case problems in HTML Templates
// Fix setting To call on reply to HTML messages
// More preparations for 64 bit including saving WP info as a text file.
// Set "RMS Express User" when a new user connects using PAT
// Increace maximum length on Forwarding Alias string in Web interface
// Expand multiaddress messages from Winlink Express if "Don't add @Winlink.org" set or no RMS BBS
// Fix program error if READ used without a filename
// Trap reject messages from Winlink CMS
// Fix "delete to recycle bin" on Linux
// Handle Radio Only Messages (-T or -R suffix on calling station)
// Fix program error on saving empty Alias list on Web Forwarding page
// Add REQDIR and REQFIL
// Experimental Blocked Uncompressed forwarding
// Security fix for YAPP