home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
LIST235.ZIP
/
LISTUTIL.WCX
(
.txt
)
< prev
next >
Wrap
Wildcat! WCX
|
1995-06-02
|
15KB
|
867 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 15197 bytes 12/30/122 04:14:22pm
'! Code Segment Size :7750 bytes
'! Data Segment Size :5832 bytes
'! String Segment Size:7447 bytes
'! Compiled with WCC version 4.10
Type Type27
Filler0(1 To 4) As Byte
w4 As Word
End Type
Type Type26
s0 As String*70
s70 As String*8
i78 As Integer
i80 As Integer
s82 As String*1
s83 As String*1
End Type
Dim b4463(1 To 70) As Byte
Dim i4533 As Integer
Dim s4535 As String*70
Dim t26_4605 As Type26
Dim s5425 As String
Dim s5429 As String
Dim i5433 As Integer
Dim i5435 As Integer
Dim i5437 As Integer
Dim i5439 As Integer
Dim mh5441 As MessageHeader
Dim s5761 As String*20
Dim s5781 As String*15
Dim s5796 As String*15
Dim s5811 As String*15
Dim w5826 As Word
Dim i5828 As Integer
Dim i5830 As Integer
Dim l65518_ As Long
Dim i65522_ As Integer
Dim s65524_ As String
Dim i65528_ As Integer
Dim i65530_ As Integer
Dim s65532_ As String
Cls
Print "@0F@Listserv Sysop Utility v2.35 (06/02/95) - by Pete Nelson"
Print "Terminal One BBS (510) 689-9528"
Print "Author: pete@terminal-one.com"
Print
If Exists("listserv.key") Then
Open "listserv.key" For Random As 1 Len = 70 '! This value should probably be replaced with a "SizeOf" expression
Get 1, 1, b4463 '! 70 bytes
Print "@0E@Registered to@07@:@0A@ ";
148 For i4533 = 1 To 70 Step 1
Print Chr(b4463(i4533) - 120);
Next
262 Locate 7, 19
Print "@0F@|";
Delay 0.001
Locate 7, 19
Print "@0C@T@0F@\";
Delay 0.001
Locate 7, 20
Print "@0C@h@0F@-";
Delay 0.001
Locate 7, 21
Print "@0C@a@0F@/";
Delay 0.001
Locate 7, 22
Print "@0C@n@0F@|";
Delay 0.001
Locate 7, 23
Print "@0C@k@0F@\";
Delay 0.001
Locate 7, 24
Print "@0C@s@0F@-";
Delay 0.001
Locate 7, 25
Print "@0C@ @0F@/";
Delay 0.001
Locate 7, 26
Print "@0C@f@0F@|";
Delay 0.001
Locate 7, 27
Print "@0C@o@0F@\";
Delay 0.001
Locate 7, 28
Print "@0C@r@0F@-";
Delay 0.001
Locate 7, 29
Print "@0C@ @0F@/";
Delay 0.001
Locate 7, 30
Print "@0C@s@0F@|";
Delay 0.001
Locate 7, 31
Print "@0C@u@0F@\";
Delay 0.001
Locate 7, 32
Print "@0C@p@0F@-";
Delay 0.001
Locate 7, 33
Print "@0C@p@0F@/";
Delay 0.001
Locate 7, 34
Print "@0C@o@0F@|";
Delay 0.001
Locate 7, 35
Print "@0C@r@0F@\";
Delay 0.001
Locate 7, 36
Print "@0C@t@0F@-";
Delay 0.001
Locate 7, 37
Print "@0C@i@0F@/";
Delay 0.001
Locate 7, 38
Print "@0C@n@0F@|";
Delay 0.001
Locate 7, 39
Print "@0C@g@0F@\";
Delay 0.001
Locate 7, 40
Print "@0C@ @0F@-";
Delay 0.001
Locate 7, 41
Print "@0C@L@0F@/";
Delay 0.001
Locate 7, 42
Print "@0C@i@0F@|";
Delay 0.001
Locate 7, 43
Print "@0C@s@0F@\";
Delay 0.001
Locate 7, 44
Print "@0C@t@0F@-";
Delay 0.001
Locate 7, 45
Print "@0C@s@0F@/";
Delay 0.001
Locate 7, 46
Print "@0C@e@0F@|";
Delay 0.001
Locate 7, 47
Print "@0C@r@0F@\";
Delay 0.001
Locate 7, 48
Print "@0C@v@0F@-";
Delay 0.001
Locate 7, 49
Print "@0C@!@0F@ ";
Delay 0.001
Locate 7, 50
Print
Print
Close 1
End If
1046 WaitEnter
w5826 = 200
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
1056 Reset
Cls
Print
Print " @0B@Listserv Sysop Utility v2.35"
Print
Print " @09@[@0F@C@09@] @0E@- @0A@Create a new Mailing List"
If Exists("listserv.dat") Then
Print " @09@[@0F@R@09@] @0E@- @0A@Remove a Mailing List"
Print " @09@[@0F@V@09@] @0E@- @0A@View your Mailing Lists"
Print " @09@[@0F@L@09@] @0E@- @0A@List/Search Subscribers for a Mailing List"
Print " @09@[@0F@D@09@] @0E@- @0A@Drop a Subscriber from a Mailing List"
Print " @09@[@0F@A@09@] @0E@- @0A@Add a Subscriber to a Mailing List"
Print " @09@[@0F@P@09@] @0E@- @0A@Change the high message pointer in LISTSERV.PTR"
Print " @09@[@0F@M@09@] @0E@- @0A@Moderate your lists - View/Delete unprocessed messages"
Print " @09@[@0F@B@09@] @0E@- @0A@Rebuild a Mailing List Data File"
End If
1170 Print " @09@[@0F@E@09@] @0E@- @0A@E-Mail the Author"
Print " @09@[@0F@Q@09@] @0E@- @0A@Quit"
Print
Print " @0B@Choice@07@:@0F@ ";
s5425 = ""
Do
1208 s5425 = UCase(InKey(1213417543))
Loop Until s5425 > ""
Print "@0D@"; s5425
s65532_ = s5425
If s65532_ = "C" Then
GoTo 1588
GoTo 1588
End If
1292 If s65532_ = "R" Then
GoTo 2597
GoTo 1588
End If
1321 If s65532_ = "V" Then
GoTo 2930
GoTo 1588
End If
1350 If s65532_ = "A" Then
GoTo 3358
GoTo 1588
End If
1379 If s65532_ = "D" Then
GoTo 3924
GoTo 1588
End If
1408 If s65532_ = "L" Then
GoTo 4875
GoTo 1588
End If
1437 If s65532_ = "P" Then
GoTo 4657
GoTo 1588
End If
1466 If s65532_ = "M" Then
GoTo 5811
GoTo 1588
End If
1495 If s65532_ = "B" Then
GoTo 6879
GoTo 1588
End If
1524 If s65532_ = "E" Then
GoTo 7383
GoTo 1588
End If
1553 If s65532_ = "Q" Then
GoTo 7723
GoTo 1588
End If
1582 Loop
1588 Cls
Print "@0A@Enter the mailing list address of your new list, minus the domain name."
Print "@0A@Example: WILDCAT-L, NEW-LIST, etc @03@[@0F@ENTER@03@]@0A@ to abort)"
t26_4605.s0 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (t26_4605.s0 = "") = 0 Then GoTo 1663
Loop
1663 Print
Print "@0A@Enter the name of the datafile you will use. A filename such as"
Print "@0A@ALIENS-L would use the ALIENS-L.DAT, ALIENS-L.ADD, ALIENS-L.DRP, etc,"
Print "@0A@for the mailing list operations."
Print "@0B@Filename@07@: "; DefColor;
t26_4605.s70 = InputMask("", "XXXXXXXX", "", 1213417543)
If (t26_4605.s70 = "") = 0 Then GoTo 1768
Loop
1768 Print
Print "@0B@Choose the type of list you wish to run@07@:"
Print
Print "@09@[@0F@1@09@] @07@-@0E@ Automatic subscription requests, non-subscribers can post"
Print "@09@[@0F@2@09@] @07@-@0E@ Automatic subscription requests, only subscribers can post"
Print "@09@[@0F@3@09@] @07@-@0E@ Must e-mail host to subscribe, non-subscibers can post"
Print "@09@[@0F@4@09@] @07@-@0E@ Must e-mail host to subscribe, only subscribers can post"
Print "@09@[@0F@5@09@] @07@-@0E@ Automatic subscription requests, must be authorized to post"
Print "@09@[@0F@6@09@] @07@-@0E@ Must e-mail host to subscribe, must be authorized to post"
Print
Print "@03@(@0C@NOTE@03@) @0E@All unsubscription requests will still be handled automatically."
Print
Print "@0A@Mailing List Type@07@: "; DefColor;
t26_4605.i78 = InputNumber("", 1, 6)
Print
Print "@0A@Number of archived messages to store on disk@07@: "; DefColor;
t26_4605.i80 = InputNumber("", 0, 999)
Print
Print "@0A@Can non-subscribers requests archived messages? "; DefColor;
t26_4605.s82 = ""
Do
1951 t26_4605.s82 = UCase(InputMask("", "X", "Y", 1213417543))
Loop Until t26_4605.s82 = "Y" Or t26_4605.s82 = "N"
Print
Print "@0A@Should Listserv send a confirmation reply when a message gets posted? "; DefColor;
t26_4605.s83 = ""
Do
2060 t26_4605.s83 = UCase(InputMask("", "X", "Y", 1213417543))
Loop Until t26_4605.s83 = "Y" Or t26_4605.s83 = "N"
t26_4605.s0 = UCase(t26_4605.s0)
t26_4605.s70 = UCase(t26_4605.s70)
Cls
Print "@0A@List Name @07@:@0F@ "; t26_4605.s0
Print "@0A@List Files@07@:@0F@ "; t26_4605.s70
Print "@0A@List Type @07@:@0F@ ";
i65530_ = t26_4605.i78
If i65530_ = 1 Then
Print "Automatic subscription requests, non-subscribers can post"
Else
2270 If i65530_ = 2 Then
Print "Automatic subscription requests, only subscribers can post"
Else
2300 If i65530_ = 3 Then
Print "Must e-mail host to subscribe, non-subscibers can post"
Else
2330 If i65530_ = 4 Then
Print "Must e-mail host to subscribe, only subscribers can post"
Else
2360 If i65530_ = 5 Then
Print "Automatic subscription requests, must be authorized to post"
Else
2390 If i65530_ = 6 Then
Print "Must e-mail host to subscribe, must be authorized to post"
GoTo 2420
End If
End If
End If
End If
End If
End If
2420 Print "@0B@Allow Non-Subscribers to retrieve archived messages@07@:@0F@ "; t26_4605.s82
Print "@0B@Listserv sends confirmation replys@07@: @0F@"; t26_4605.s83
Print "@0B@Number of archived messages to store@07@:@0F@ "; t26_4605.i80
Print
Print "@0A@Is this correct? "; DefColor;
If InputYesNo("", -1) Then
Reset
Open "listserv.dat" For Random As 1 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
Put 1, LOF(1) + 1, t26_4605 '! 84 bytes
Close 1
Print
Print "@0A@Saving @0F@"; t26_4605.s0; "@0A@ ..."
WaitEnter
End If
2591 Loop
2597 Cls
Print "@0A@Enter the name of the mailing list you wish to remove@07@:"
s5429 = ""
s5429 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 2668
Loop
2668 s5429 = UCase(s5429)
Reset
Open "listserv.dat" For Random As 1 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
Do
2709 Get 1, i5435, t26_4605 '! 84 bytes
i5433 = 0
i5433 = InStr(t26_4605.s0, s5429)
If i5433 > 0 Then
Print
Print "@0C@Remove mailing list @0F@"; t26_4605.s0; "@0C@ ? "; DefColor;
If InputYesNo("", 0) Then
Print "@0C@Are you SURE!? ";
If InputYesNo("", 0) Then
t26_4605.s0 = " "
t26_4605.s70 = " "
Put 1, i5435, t26_4605 '! 84 bytes
Close 1
Print
Print "@0C@Mailing list removed..."
Print
WaitEnter
GoTo 1056
End If
End If
End If
2900 Inc i5435
Loop Until i5435 > LOF(1)
Loop
2930 Cls
Reset
Open "listserv.dat" For Random As 1 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
Do
2963 Get 1, i5435, t26_4605 '! 84 bytes
If t26_4605.s0 <> " " Then
Delay 0.001
Print "@0F@"; t26_4605.s0; " @0A@using data files of @0E@"; t26_4605.s70
Print "@0B@";
i65528_ = t26_4605.i78
If i65528_ = 1 Then
Print "Automatic subscription requests, non-subscribers can post"
Else
3094 If i65528_ = 2 Then
Print "Automatic subscription requests, only subscribers can post"
Else
3124 If i65528_ = 3 Then
Print "Must e-mail host to subscribe, non-subscibers can post"
Else
3154 If i65528_ = 4 Then
Print "Must e-mail host to subscribe, only subscribers can post"
Else
3184 If i65528_ = 5 Then
Print "Automatic subscription requests, must be authorized to post"
Else
3214 If i65528_ = 6 Then
Print "Must e-mail host to subscribe, must be authorized to post"
GoTo 3244
End If
End If
End If
End If
End If
End If
3244 Print "@0B@Allow Non-Subscribers to retrieve Archived Messages@07@:@0F@ "; t26_4605.s82
Print "@0B@Listserv sends confirmation replys@07@: @0F@"; t26_4605.s83
Print "@0B@Number of Archived Messages to Store@07@:@0F@ "; t26_4605.i80
Print
If DisplayStopped Then
GoTo 1056
End If
End If
3323 Inc i5435
Loop Until i5435 > LOF(1)
Print
WaitEnter
Loop
3358 Cls
Print "@0A@Which mailing list to you want to add to?"
s5429 = ""
s5429 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 3429
Loop
3429 s5429 = UCase(s5429)
Reset
Open "listserv.dat" For Random As 1 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
Do
3470 Get 1, i5435, t26_4605 '! 84 bytes
3485 Do While t26_4605.s0 = " "
Inc i5435
If i5435 > LOF(1) Then
GoTo 1056
End If
3534 Get 1, i5435, t26_4605 '! 84 bytes
Loop
3555 i5433 = 0
i5433 = InStr(t26_4605.s0, s5429)
If i5433 > 0 Then
Print
Print "@0A@Add to @0F@"; t26_4605.s0; "@0A@ ? "; DefColor;
If InputYesNo("", -1) Then
Cls
Print "@0A@Enter name/e-mail address to add to the mailing list:"
s4535 = ""
s4535 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
s4535 = UCase(s4535)
If s4535 = "" Then
Cls
GoTo 1056
End If
3736 Cls
Print "@0F@"; s4535
Print
Print "@0A@Is this correct? "; DefColor;
If InputYesNo("", -1) Then
Reset
Open t26_4605.s70 + ".dat" For Random As 2 Len = 70 '! This value should probably be replaced with a "SizeOf" expression
Put 2, LOF(2) + 1, s4535 '! 70 bytes
Close 2
Print
Print "@0F@"; s4535; " @0A@has been added."
Print
WaitEnter
Cls
GoTo 1056
End If
3888 GoTo 1056
End If
End If
3894 Inc i5435
Loop Until i5435 > LOF(1)
Loop
3924 Cls
Print "@0A@Drop subscriber from which mailing list?"
s5429 = ""
s5429 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 3995
Loop
3995 s5429 = UCase(s5429)
Reset
Open "listserv.dat" For Random As 1 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
Do
4036 Get 1, i5435, t26_4605 '! 84 bytes
4051 Do While t26_4605.s0 = " "
Inc i5435
If i5435 > LOF(1) Then
GoTo 1056
End If
4100 Get 1, i5435, t26_4605 '! 84 bytes
Loop
4121 i5433 = 0
i5433 = InStr(t26_4605.s0, s5429)
If i5433 > 0 Then
Print
Print "@0A@Drop from @0F@"; t26_4605.s0; "@0A@ ? "; DefColor;
If InputYesNo("", 0) Then
GoTo 4270
End If
End If
4211 Inc i5435
Loop Until i5435 > LOF(1)
Print
Print "@0C@No lists matching @0F@"; s5429; "@0C@."
Print
WaitEnter
Loop
4270 Close 1
Print
Print "@0A@Who do you want to drop from @0F@"; t26_4605.s0; "@0A@ ? "; DefColor
s5429 = ""
s5429 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 4365
Loop
4365 s5429 = UCase(s5429)
Reset
Open t26_4605.s70 + ".dat" For Random As 1 Len = 70 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
Do
4418 Get 1, i5435, s4535 '! 70 bytes
i5433 = 0
i5433 = InStr(s4535, s5429)
If i5433 > 0 Then
Print
Print "@0C@Remove @0F@"; s4535; " @0C@? "; DefColor;
If InputYesNo("", 0) Then
s5429 = s4535
s4535 = " "
Put 1, i5435, s4535 '! 70 bytes
Print
Print
Print "@0F@"; s5429; "@0C@ has been removed from @0F@"; t26_4605.s0
Print
WaitEnter
GoTo 1056
End If
End If
4598 Inc i5435
Loop Until i5435 > LOF(1)
Print
Print "@0C@No addresses matching @0F@"; s5429; "@0C@."
Print
WaitEnter
Loop
4657 Cls
Print "@0A@This will let you change the high message pointer in LISTSERV.PTR. Be"
Print "careful when running this, as changing the high message pointer may cause"
Print "Listserv to send out previously sent messages!"
Print
s5429 = ""
Print "@0A@Enter new high message, @03@[@0F@ENTER@03@]@0A@ to abort@07@: "; DefColor;
s5429 = InputMask("", "XXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 4762
Loop
4762 Print
Print "@0C@Are you sure you want to reset the high message pointer to@0F@ "; s5429; "@0C@ ? "; DefColor;
If InputYesNo("", 0) Then
Open "listserv.ptr" For Output As 5
Print #5, s5429
Close 5
Print
Print "@0B@High message pointer reset to @0F@"; s5429; "@0B@."
Print
WaitEnter
End If
4869 Loop
4875 Cls
Print "@0A@List/Search which mailing list?"
s5429 = ""
s5429 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 4946
Loop
4946 s5429 = UCase(s5429)
Reset
Open "listserv.dat" For Random As 1 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
Do
4987 Get 1, i5435, t26_4605 '! 84 bytes
i5433 = 0
i5433 = InStr(t26_4605.s0, s5429)
If i5433 > 0 Then
Print
Print "@0A@List subscribers for @0F@"; t26_4605.s0; "@0A@ ? "; DefColor;
If InputYesNo("", -1) Then
GoTo 5124
End If
End If
5094 Inc i5435
Loop Until i5435 > LOF(1)
Loop
5124 s5425 = ""
Do
5133 Print
Print "@09@[@0F@L@09@]@0A@ist all Subscribers or @09@[@0F@S@09@]@0A@earch Subscribers@07@: "; DefColor;
s5425 = InputMask("", "X", "L", 1213417543)
s5425 = UCase(s5425)
If s5425 = "S" Then
GoTo 5431
End If
5210 Loop Until s5425 = "L"
Cls
Close 1
Reset
Open t26_4605.s70 + ".dat" For Random As 1 Len = 70 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
i5830 = 0
Do
5283 Get 1, i5435, s4535 '! 70 bytes
If s4535 <> " " Then
Inc i5830
Delay 0.001
Print "@0D@"; t26_4605.s0; " @0F@"; s4535
If DisplayStopped Then
GoTo 1056
End If
End If
5378 Inc i5435
Loop Until i5435 > LOF(1)
Print
Print "@0A@Total Subscribers@07@: @0B@"; i5830
Print
WaitEnter
Loop
5431 Print
Print "@0A@Full or partial name to search by?"
s5429 = ""
s5429 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 5501
Loop
5501 s5429 = UCase(s5429)
Reset
Open t26_4605.s70 + ".dat" For Random As 1 Len = 70 '! This value should probably be replaced with a "SizeOf" expression
i5435 = 1
Print
i5830 = 0
Cls
Do
5565 Get 1, i5435, s4535 '! 70 bytes
5580 Do While t26_4605.s0 = " "
Inc i5435
If i5435 > LOF(1) Then
GoTo 1056
End If
5629 Get 1, i5435, s4535 '! 70 bytes
Loop
5650 i5433 = 0
i5433 = InStr(s4535, s5429)
If i5433 > 0 Then
Inc i5830
Print "@0D@"; t26_4605.s0; " @0F@"; s4535
Delay 0.001
End If
5734 Inc i5435
Loop Until i5435 > LOF(1)
Print
Print "@0A@Total Matches@07@:@0B@ "; i5830
Print
Print "@0C@No more matches on @0F@"; s5429; "@0C@."
Print
WaitEnter
Loop
5811 Cls
Reset
Open "listserv.cfg" For Input As 1
Input #1, i5437
Close 1
i5439 = Conference.Number
Join i5437
Open "listserv.ptr" For Input As 1
Input #1, i5437
Close 1
Print "Checking for messages..."
Delay 0.001
mh5441.Number = i5437
Open "listserv.dat" For Random As 3 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
5957 If (Not GetNextMessage(mh5441)) = 0 Then GoTo 6001
Print
Print "@0F@No more messages found."
Print
WaitEnter
Join i5439
Loop
6001 i5435 = 1
Do
Do
6008 Get 3, i5435, t26_4605 '! 84 bytes
If i5435 > LOF(3) Then
GoTo 5957
End If
6047 If (t26_4605.s0 = " ") = 0 Then GoTo 6078
Inc i5435
Loop
Do
Do
Do
Do
6078 If DisplayStopped Then
GoTo 1056
End If
6093 If (UCase(mh5441.To) = UCase(t26_4605.s0) Or UCase(mh5441.To) = "LISTSERV") = 0 Then GoTo 6859
If (mh5441.Flags And 512) <> 0 Then
GoTo 5957
End If
6175 Cls
GetMessageText(mh5441.Number, "listmdrt.tmp")
s5781 = Pad(mh5441.To, 15)
s5761 = Pad(mh5441.From, 20)
s5796 = Pad(mh5441.Subject, 15)
s5811 = Pad(Str(mh5441.Number), 7)
Print " @0A@Msg #@07@:@0F@ "; mh5441.Number
Print " @0A@From@07@:@0F@ "; mh5441.From
Print " @0A@To@07@:@0F@ "; mh5441.To
Print "@0A@Subject@07@:@0F@ "; mh5441.Subject
Print "@0D@[-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-]@0E@"
DisplayTextFile("listmdrt.tmp")
Print
If DisplayStopped Then
Print "";
End If
6403 Print "@09@[@0F@Y@09@]@0A@ Next Message, @09@[@0F@D@09@]@0A@elete Message, @09@[@0F@E@09@]@0A@dit Message or Su@09@[@0F@B@09@]@0A@ject, @09@[@0F@Q@09@]@0A@uit@07@: "; DefColor;
s5425 = InputMask("", "X", "Y", 1213417543)
s65524_ = UCase(s5425)
If s65524_ = "Y" Then
Print "@0D@Checking for messages..."
Delay 0.001
GoTo 5957
GoTo 6859
End If
6501 If (s65524_ = "D") = 0 Then GoTo 6610
Print
Print "@0A@Delete this message - @0C@Are you sure? "; DefColor;
If InputYesNo("", 0) Then
FlagSet mh5441.Flags, 512
UpdateMessage(mh5441, "")
Print "@0C@Message Deleted! @0D@Getting next message..."
Delay 1
GoTo 5957
End If
6598 Loop
GoTo 6859
6610 If (s65524_ = "E") = 0 Then GoTo 6671
If EditMessage(mh5441, "listmdrt.tmp", 1024) Then
UpdateMessage(mh5441, "listmdrt.tmp")
End If
6659 Loop
GoTo 6859
6671 If (s65524_ = "B") = 0 Then GoTo 6816
s5796 = mh5441.Subject
Print
Print "@0A@New Subject@07@ "; DefColor;
mh5441.Subject = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If mh5441.Subject = "" Then
mh5441.Subject = s5796
End If
6792 UpdateMessage(mh5441, "listmdrt.tmp")
Loop
GoTo 6859
6816 If s65524_ = "Q" Then
Join i5439
GoTo 1056
GoTo 6859
End If
6853 Loop
6859 Inc i5435
Delay 0.001
Loop
6879 i5435 = 1
Cls
Print "@0A@Which mailing list do you wish to rebuild?"; DefColor
s5429 = InputMask("", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "", 1213417543)
If (s5429 = "") = 0 Then GoTo 6953
Loop
6953 Open "listserv.dat" For Random As 1 Len = 84 '! This value should probably be replaced with a "SizeOf" expression
Do
6973 Get 1, i5435, t26_4605 '! 84 bytes
If t26_4605.s0 <> " " Then
If InStr(UCase(t26_4605.s0), UCase(s5429)) > 0 Then
Print
Print "@0A@Rebuild @0F@"; t26_4605.s0; "@0A@? "; DefColor;
If InputYesNo("", -1) Then
GoTo 7138
End If
End If
End If
7089 Inc i5435
Loop Until i5435 > LOF(1)
Print
Print "@0C@No more matches."
Delay 2
Loop
7138 Reset
i5435 = 1
i5828 = 1
Open t26_4605.s70 + ".dat" For Random As 1 Len = 70 '! This value should probably be replaced with a "SizeOf" expression
Open "lstutl.tmp" For Random As 2 Len = 70 '! This value should probably be replaced with a "SizeOf" expression
Print "@0C@Processing mailing list - Please wait..."
Delay 0.001
Do
7224 Get 1, i5435, s4535 '! 70 bytes
If s4535 <> " " Then
s4535 = Trim(s4535)
Put 2, i5828, s4535 '! 70 bytes
Inc i5828
End If
7294 Inc i5435
Loop Until i5435 > LOF(1)
Reset
CopyFile("lstutl.tmp", t26_4605.s70 + ".dat")
Kill "listmdrt.tmp"
Kill "lstutl.tmp"
Print "@0F@All done!"
Print
WaitEnter
Loop
7383 Cls
Print "@0A@Have a problem or suggestion for Listserv? I'll do the best I can to help"
Print "@0A@you out or include your suggestions in a future version!"
Print
Print "@0C@-@0F@Pete Nelson"
Print
Print "E-Mail the author for support? "; DefColor;
If (Not InputYesNo("", -1)) = 0 Then GoTo 7456
Loop
7456 If (Not Exists("listserv.cfg")) = 0 Then GoTo 7490
Print "@0C@You need to create a LISTSERV.CFG first."
WaitEnter
Loop
7490 Open "listserv.cfg" For Input As 1
Input #1, i5437
Close 1
i5439 = Conference.Number
Join i5437
mh5441.To = "pete.nelson@terminal-one.com"
mh5441.From = User.Name
mh5441.Subject = "Comment on Listserv"
mh5441.Flags = 3
mh5441.Network = ""
If EditMessage(mh5441, "mailauth.srv", 1213417543) Then
AddMessage(mh5441, "mailauth.srv", "", 1213417543)
Print
Print "@0A@Message @07@#@0D@"; mh5441.Number; "@0A@ saved..."
Print
WaitEnter
End If
7701 Join i5439
Kill "mailauth.srv"
Loop
7723 Reset
Print
Print