Small fixes again

This commit is contained in:
Michiel Broek 2002-07-14 13:47:21 +00:00
parent 1740ee0c84
commit 0fac0fcdb5
4 changed files with 287 additions and 237 deletions

View File

@ -21,6 +21,8 @@ v0.35.03 06-Jul-2002
mbfido:
Rollover now only sets IsDoing when it really does a date
rollover.
When a new tic area was created the first file received for
that area was refused.
newuser:
Check for Unix accounts is now case sensitive.
@ -43,6 +45,9 @@ v0.35.03 06-Jul-2002
mbsetup:
Enabled setting of nodelist override settings in menu 7.x.3
After nodes setup edit the semafore scanout is set.
When a JAM messagebase path is changed in one of the message
area, filefind and newfiles records are automatic updated if
they were connected to that area.
script:
The bbsdoor.sh and rundoor.sh scripts are now only installed
@ -55,8 +60,9 @@ v0.35.02 22-Jun-2002 - 06-Jul-2002
upgrade:
Delete ~/etc/lastcall.data
Delete ~/etc/archiver.data
Delete ~/etc/virscan.data
Start mbsetup and enter the Edit Archiver Programs. The new
values should now be set.
values should now be set. Do the same for Virus scanners.
general:
Added checks for GoldED in external program checks.
@ -96,7 +102,7 @@ v0.35.02 22-Jun-2002 - 06-Jul-2002
tag, mbfido would crash.
Filefind netmail replies now set the private flag.
Removed debugging messages displaying the incoming tic files.
The mbfid test command now needs a extra parameter, the final
The mbfido test command now needs a extra parameter, the final
destination to test. It doesn't use the internal fixed table
anymore.

11
TODO
View File

@ -1,6 +1,6 @@
$Id$
MBSE BBS V0.35.02 TODO list.
MBSE BBS V0.35.03 TODO list.
----------------------------
These are a list of things that must be implemented one way or
@ -60,13 +60,8 @@ mbfido:
N: Process To: and Cc: lines in messages gated from Fido to Internet.
N: Must be able to use more nodelist override's from the setup.
U: Add routing table to override standard routing.
N: The first file received in a not yet created tic area is refused
after the area is created: node xxx not connected to area xxx.
N: Add traffic to html.nodes
N: Add stats for posts made by external programs.
@ -117,14 +112,10 @@ mbsetup:
main aka with zone's is listed first. Having zone's mixed gives
too high outbound stats and the outbound is scanned multiple times.
U: When moving an JAM messagebase, check filefind records.
N: Put ZMH fields in the network setup for each zone.
N: Add switch for file area to skip checking and indexing.
N: Add more nodelist override settings for nodes.
L: Generate crossreference document:
File Areas <=> BBS groups
File Areas <=> Newfiles groups

View File

@ -169,6 +169,14 @@ int ProcessTic(fa_list *sbl)
return 1;
}
tidy_faddr(p_from);
/*
* Try to load the .TIC area again.
*/
if (!SearchTic(TIC.TicIn.Area)) {
Bad((char *)"Reload of new created file area %s failed", TIC.TicIn.Area);
free(Temp);
return 1;
}
}
if ((tic.Secure) && (!TIC.TicIn.Hatch)) {

View File

@ -996,7 +996,8 @@ int EditMsgRec(int Area)
unsigned long crc1;
int tmp, i, connections = 0, changed = FALSE, Active, Forced = FALSE;
sysconnect System;
char *temp;
char *temp, oldpath[81];
FILE *fil;
clr_index();
IsDoing("Edit Msg Area");
@ -1055,8 +1056,7 @@ int EditMsgRec(int Area)
}
switch (select_menu(28)) {
case 0:
crc1 = 0xffffffff;
case 0: crc1 = 0xffffffff;
crc1 = upd_crc32((char *)&msgs, crc1, msgshdr.recsize);
fseek(tfil, 0, 0);
for (i = 0; i < (msgshdr.syssize / sizeof(sysconnect)); i++) {
@ -1153,15 +1153,60 @@ int EditMsgRec(int Area)
SetScreen();
break;
case 4: E_STR( 9,16,64,msgs.Newsgroup, "The ^Newsgroup^ name of this area")
case 5: strcpy(msgs.Base, edit_jam(10,16,64,msgs.Base ,(char *)"The path to the ^JAM Message Base^"));
case 5: sprintf(oldpath, "%s", msgs.Base);
strcpy(msgs.Base, edit_jam(10,16,64,msgs.Base ,(char *)"The path to the ^JAM Message Base^"));
if (strcmp(oldpath, msgs.Base)) {
Syslog('+', "JAM path changed");
i = 0;
temp = calloc(PATH_MAX, sizeof(char));
sprintf(temp, "%s/etc/scanmgr.data", getenv("MBSE_ROOT"));
if ((fil = fopen(temp, "r+")) != NULL) {
fread(&scanmgrhdr, sizeof(scanmgrhdr), 1, fil);
while (fread(&scanmgr, scanmgrhdr.recsize, 1, fil) == 1) {
if (strcmp(oldpath, scanmgr.ScanBoard) == 0) {
i++;
sprintf(scanmgr.ScanBoard, "%s", msgs.Base);
fseek(fil, - scanmgrhdr.recsize, SEEK_CUR);
fwrite(&scanmgr, scanmgrhdr.recsize, 1, fil);
}
if (strcmp(oldpath, scanmgr.ReplBoard) == 0) {
i++;
sprintf(scanmgr.ReplBoard, "%s", msgs.Base);
fseek(fil, - scanmgrhdr.recsize, SEEK_CUR);
fwrite(&scanmgr, scanmgrhdr.recsize, 1, fil);
}
}
fclose(fil);
Syslog('+', "Updated %d paths in %s", i, temp);
}
i = 0;
sprintf(temp, "%s/etc/newfiles.data", getenv("MBSE_ROOT"));
if ((fil = fopen(temp, "r+")) != NULL) {
fread(&newfileshdr, sizeof(newfileshdr), 1, fil);
while (fread(&newfiles, newfileshdr.recsize, 1, fil) == 1) {
if (strcmp(oldpath, newfiles.Area) == 0) {
i++;
sprintf(newfiles.Area, "%s", msgs.Base);
fseek(fil, - newfileshdr.recsize, SEEK_CUR);
fwrite(&newfiles, newfileshdr.recsize, 1, fil);
}
fseek(fil, newfileshdr.grpsize, SEEK_CUR);
}
fclose(fil);
Syslog('+', "Updated %d paths in %s", i, temp);
}
free(temp);
Forced = TRUE;
MailForced = TRUE;
}
break;
case 6: E_STR( 11,16,64,msgs.Origin, "The ^Origin line^ to append to Echomail messages")
case 7: tmp = PickAka((char *)"9.2.7", TRUE);
if (tmp != -1)
msgs.Aka = CFG.aka[tmp];
SetScreen(); break;
SetScreen();
break;
case 8: E_UPS( 13,16,13,msgs.QWKname, "The name for ^QWK or Bluewave^ message packets")
case 9: E_STR( 14,16,16,msgs.Distribution, "The ^Distribution^ name if this is a newsgroup")
case 10:msgs.Type = edit_msgtype(15,16, msgs.Type);