Separated tty drivers for mbsebbs and mbnewusr

This commit is contained in:
Michiel Broek
2004-10-27 11:08:09 +00:00
parent d828e13b14
commit fd8eb8b6f3
127 changed files with 1951 additions and 1712 deletions

View File

@@ -67,7 +67,7 @@ void Uploads()
IsDoing("Check uploads");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf(" Checking uploads...\n");
}
@@ -373,7 +373,7 @@ int Announce()
int i, groups, any;
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Announce new files\n");
}

View File

@@ -94,11 +94,11 @@ void ScanArea(ff_list **ffl)
unsigned long Number, Highest;
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r %-40s", scanmgr.Comment);
colour(12, 0);
mbse_colour(12, 0);
printf(" (Scanning) ");
colour(13, 0);
mbse_colour(13, 0);
fflush(stdout);
}
Syslog('+', "Scanning %s", scanmgr.Comment);
@@ -267,12 +267,12 @@ void ScanFiles(ff_list *tmp)
Syslog('+', "ff: %s [%s]", temp, tmp->subject);
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
temp[40] = '\0';
printf("\r %-40s", temp);
colour(12, 0);
mbse_colour(12, 0);
printf(" (Searching)");
colour(13, 0);
mbse_colour(13, 0);
fflush(stdout);
}
@@ -363,7 +363,7 @@ void ScanFiles(ff_list *tmp)
if (found) {
if (!do_quiet) {
colour(14, 0);
mbse_colour(14, 0);
printf(" (Replying)");
fflush(stdout);
}
@@ -488,7 +488,7 @@ int Filefind()
IsDoing("FileFind");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Processing FileFind requests\n");
}
Syslog('+', "Processing FileFind requests");
@@ -520,7 +520,7 @@ int Filefind()
if (Replies)
rc = TRUE;
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Processed %d requests, created %d replies\n", Requests, Replies);
}
}

View File

@@ -121,7 +121,7 @@ void MakeStat(void)
}
if (!do_quiet) {
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf("\rMaking statistical HTML pages");
fflush(stdout);
}

View File

@@ -53,9 +53,9 @@ void ProgName(void)
if (do_quiet)
return;
colour(15, 0);
mbse_colour(15, 0);
printf("\nMBAFF: MBSE BBS %s Announce new files and FileFind\n", VERSION);
colour(14, 0);
mbse_colour(14, 0);
printf(" %s\n", COPYRIGHT);
}
@@ -77,7 +77,7 @@ void die(int onsig)
Syslog(' ', "MBAFF finished in %s", t_elapsed(t_start, t_end));
if (!do_quiet) {
colour(7, 0);
mbse_colour(7, 0);
printf("\n");
}
ExitClient(onsig);
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
struct tm *t;
InitConfig();
TermInit(1, 80, 25);
mbse_TermInit(1, 80, 25);
t_start = time(NULL);
t = localtime(&t_start);
Diw = t->tm_wday;
@@ -178,18 +178,18 @@ void Help(void)
do_quiet = FALSE;
ProgName();
colour(11, 0);
mbse_colour(11, 0);
printf("\nUsage: mbaff [command] <options>\n\n");
colour(9, 0);
mbse_colour(9, 0);
printf(" Commands are:\n\n");
colour(3, 0);
mbse_colour(3, 0);
printf(" a announce Announce new files\n");
printf(" f filefind FileFind service\n");
colour(9, 0);
mbse_colour(9, 0);
printf("\n Options are:\n\n");
colour(3, 0);
mbse_colour(3, 0);
printf(" -q -quiet Quiet mode\n");
colour(7, 0);
mbse_colour(7, 0);
printf("\n");
die(MBERR_COMMANDLINE);
}

View File

@@ -58,9 +58,9 @@ void ProgName(void)
if (do_quiet)
return;
colour(15, 0);
mbse_colour(15, 0);
printf("\nMBDIFF: MBSE BBS %s Nodelist diff processor\n", VERSION);
colour(14, 0);
mbse_colour(14, 0);
printf(" %s\n", COPYRIGHT);
}
@@ -100,7 +100,7 @@ void die(int onsig)
Syslog(' ', "MBDIFF finished in %s", t_elapsed(t_start, t_end));
if (!do_quiet) {
colour(7, 0);
mbse_colour(7, 0);
printf("\n");
}
ExitClient(onsig);
@@ -117,7 +117,7 @@ int main(int argc, char **argv)
struct dirent *de;
InitConfig();
TermInit(1, 80, 25);
mbse_TermInit(1, 80, 25);
t_start = time(NULL);
umask(002);
@@ -165,7 +165,7 @@ int main(int argc, char **argv)
free(cmd);
if (!do_quiet) {
colour(12, 0);
mbse_colour(12, 0);
printf("\n");
}
@@ -363,7 +363,7 @@ int main(int argc, char **argv)
Syslog('+', "Apply %s with %s to %s", onl, ond, nn);
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Apply %s with %s to %s\n", onl, ond, nn);
}
rc = apply(onl, ond, nn);
@@ -433,20 +433,20 @@ void Help(void)
do_quiet = FALSE;
ProgName();
colour(11, 0);
mbse_colour(11, 0);
printf("\nUsage: mbdiff [nodelist] [nodediff] <options>\n\n");
colour(3, 0);
mbse_colour(3, 0);
printf(" The nodelist must be the full path and filename\n");
printf(" without the dot and daynumber digits to the working\n");
printf(" directory of that nodelist.\n");
printf(" The nodediff must be the full path and filename\n");
printf(" to the (compressed) nodediff file in the download\n");
printf(" directory.\n");
colour(9, 0);
mbse_colour(9, 0);
printf("\n Options are:\n\n");
colour(3, 0);
mbse_colour(3, 0);
printf(" -quiet Quiet mode\n");
colour(7, 0);
mbse_colour(7, 0);
printf("\n");
die(MBERR_COMMANDLINE);
}
@@ -539,7 +539,7 @@ int apply(char *nl, char *nd, char *nn)
if ((rc != 0) && !do_quiet) {
show_log = TRUE;
colour(12, 0);
mbse_colour(12, 0);
}
if ((rc == 0) && (mycrc != theircrc))

View File

@@ -56,7 +56,7 @@ void AdoptFile(int Area, char *File, char *Description)
Syslog('f', "Adopt(%d, %s, %s)", Area, MBSE_SS(File), MBSE_SS(Description));
if (!do_quiet)
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
if (LoadAreaRec(Area) == FALSE)
die(MBERR_INIT_ERROR);

View File

@@ -80,7 +80,7 @@ void Check(long AreaNr)
newdir = calloc(PATH_MAX, sizeof(char));
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Checking file database...\n");
}

View File

@@ -54,7 +54,7 @@ void Delete(int UnDel, int Area, char *File)
IsDoing("Undelete file");
else
IsDoing("Delete file");
colour(LIGHTRED, BLACK);
mbse_colour(LIGHTRED, BLACK);
/*
* Check area
@@ -80,7 +80,7 @@ void Delete(int UnDel, int Area, char *File)
die(MBERR_GENERAL);
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
strcpy(mask, re_mask(File, FALSE));
if (re_comp(mask))
die(MBERR_GENERAL);

View File

@@ -110,11 +110,11 @@ void Help(void)
do_quiet = FALSE;
ProgName();
colour(LIGHTCYAN, BLACK);
mbse_colour(LIGHTCYAN, BLACK);
printf("\nUsage: mbfido [command(s)] <options>\n\n");
colour(LIGHTBLUE, BLACK);
mbse_colour(LIGHTBLUE, BLACK);
printf(" Commands are:\n\n");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf(" a areas Process Areas taglists\n");
printf(" m mail <recipient> ... MTA Mail mode\n");
printf(" ne news Scan for new news\n");
@@ -127,9 +127,9 @@ void Help(void)
printf(" to toss Toss incoming Fido mail\n");
printf(" u uucp Process UUCP batchfile\n");
printf(" w web Create WWW statistics\n\n");
colour(LIGHTBLUE, BLACK);
mbse_colour(LIGHTBLUE, BLACK);
printf(" Options are:\n\n");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf(" -f -full Full Mailscan\n");
printf(" -l -learn Learn News dupes\n");
printf(" -noc -nocrc Skip CRC checking\n");
@@ -137,7 +137,7 @@ void Help(void)
printf(" -q -quiet Quiet mode\n");
printf(" -uns -unsecure Toss unsecure\n");
printf(" -unp -unprotect Toss unprotected inbound\n");
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
ExitClient(MBERR_COMMANDLINE);
}
@@ -151,9 +151,9 @@ void ProgName(void)
if (do_quiet)
return;
colour(WHITE, BLACK);
mbse_colour(WHITE, BLACK);
printf("\nMBFIDO: MBSE BBS %s - Fidonet File and Mail processor\n", VERSION);
colour(YELLOW, BLACK);
mbse_colour(YELLOW, BLACK);
printf(" %s\n", COPYRIGHT);
}
@@ -196,7 +196,7 @@ void die(int onsig)
if (!do_quiet) {
show_log = TRUE;
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
}
if (onsig) {
@@ -246,7 +246,7 @@ void die(int onsig)
Syslog(' ', "MBFIDO finished in %s", t_elapsed(t_start, t_end));
if (!do_quiet)
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
ExitClient(onsig);
}
@@ -298,7 +298,7 @@ int main(int argc, char **argv)
InitTic();
InitUser();
InitFidonet();
TermInit(1, 80, 25);
mbse_TermInit(1, 80, 25);
t_start = time(NULL);
t = localtime(&t_start);
Diw = t->tm_wday;
@@ -608,7 +608,7 @@ int main(int argc, char **argv)
NewsUUCP();
if (do_areas) {
if (!do_quiet) {
colour(LIGHTGREEN, BLACK);
mbse_colour(LIGHTGREEN, BLACK);
printf("Are you sure to process all area lists [y/N] ");
fflush(stdout);
x = Getone();

View File

@@ -76,7 +76,7 @@ int main(int argc, char **argv)
struct passwd *pw;
InitConfig();
TermInit(1, 80, 25);
mbse_TermInit(1, 80, 25);
t_start = time(NULL);
umask(002);

View File

@@ -57,7 +57,7 @@ void ImportFiles(int Area)
Syslog('f', "Import(%d)", Area);
if (!do_quiet)
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
if (LoadAreaRec(Area) == FALSE)
die(MBERR_INIT_ERROR);

View File

@@ -328,7 +328,7 @@ void ReqIndex(void)
IsDoing("Index files");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Create index files...\n");
}
@@ -516,7 +516,7 @@ void HtmlIndex(char *Lang)
IsDoing("Create html");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\rCreate html pages... \n");
}

View File

@@ -63,7 +63,7 @@ void Kill(void)
IsDoing("Kill files");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Kill/move files...\n");
}

View File

@@ -63,7 +63,7 @@ void ListFileAreas(int Area)
columns = i;
}
colour(LIGHTRED, BLACK);
mbse_colour(LIGHTRED, BLACK);
sAreas = calloc(PATH_MAX, sizeof(char));
fAreas = calloc(PATH_MAX, sizeof(char));
sTic = calloc(PATH_MAX, sizeof(char));
@@ -110,7 +110,7 @@ void ListFileAreas(int Area)
fdb_area = mbsedb_OpenFDB(Area, 30);
fcount = 0;
fsize = 0L;
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf("File listing of area %d, %s\n\n", Area, area.Name);
printf("Short name Kb. File date Down Flg TIC Area Long name\n");
printf("------------ ----- ---------- ---- --- -------------------- ");
@@ -118,7 +118,7 @@ void ListFileAreas(int Area)
printf("-");
printf("\n");
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
while (fread(&fdb, fdbhdr.recsize, 1, fdb_area->fp) == 1) {
sprintf(flags, "---");
@@ -137,7 +137,7 @@ void ListFileAreas(int Area)
}
fsize = fsize / 1024;
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf("------------------------------------------------------------");
for (i = 60; i < columns; i++)
printf("-");
@@ -161,10 +161,10 @@ void ListFileAreas(int Area)
}
IsDoing("List fileareas");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf(" Area Files MByte File Group Area name\n");
printf("----- ----- ----- ------------ --------------------------------------------\n");
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
for (i = 1; i <= iAreas; i++) {
fseek(pAreas, ((i-1) * areahdr.recsize) + areahdr.hdrsize, SEEK_SET);
@@ -189,7 +189,7 @@ void ListFileAreas(int Area)
}
}
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf("----- ----- ----- ---------------------------------------------------------\n");
printf("%5d %5d %5ld \n", iTotal, tcount, tsize);
fclose(pAreas);

View File

@@ -52,7 +52,7 @@ void Move(int From, int To, char *File)
struct _fdbarea *src_area = NULL;
IsDoing("Move file");
colour(LIGHTRED, BLACK);
mbse_colour(LIGHTRED, BLACK);
if (From == To) {
WriteError("Area numbers are the same");
@@ -172,7 +172,7 @@ void Move(int From, int To, char *File)
}
mbsedb_PackFDB(src_area);
mbsedb_CloseFDB(src_area);
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
Syslog('+', "Move %s from %d to %d %s", File, From, To, rc ? "successfull":"failed");
if (!do_quiet)

View File

@@ -57,7 +57,7 @@ void PackFileBase(void)
IsDoing("Pack filebase");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Packing file database...\n");
}

View File

@@ -53,7 +53,7 @@ void ReArc(int Area, char *File)
struct _fdbarea *fdb_area = NULL;
IsDoing("ReArc file(s)");
colour(LIGHTRED, BLACK);
mbse_colour(LIGHTRED, BLACK);
/*
* Check area
@@ -88,7 +88,7 @@ void ReArc(int Area, char *File)
if ((fdb_area = mbsedb_OpenFDB(Area, 30)) == NULL)
die(MBERR_GENERAL);
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
strcpy(mask, re_mask(File, FALSE));
if (re_comp(mask))
die(MBERR_GENERAL);
@@ -105,7 +105,7 @@ void ReArc(int Area, char *File)
* Success, update the file entry
*/
if (!do_quiet) {
colour(9, 0);
mbse_colour(9, 0);
printf("\r Update file %s ", temp);
fflush(stdout);
}
@@ -203,7 +203,7 @@ void ReArc(int Area, char *File)
break; // stop when something goes wrong
}
if (!do_quiet) {
colour(7, 0);
mbse_colour(7, 0);
printf("\r");
for (i = 0; i < (strlen(temp) + 20); i++)
printf(" ");

View File

@@ -56,7 +56,7 @@ void SortFileBase(int Area)
IsDoing("Sort filebase");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
}
sprintf(sAreas, "%s/etc/fareas.data", getenv("MBSE_ROOT"));

View File

@@ -55,7 +55,7 @@ void ToBeRep(void)
IsDoing("Toberep");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
temp = calloc(PATH_MAX, sizeof(char));
sprintf(temp, "%s/etc/toberep.data", getenv("MBSE_ROOT"));
if ((fp = fopen(temp, "r")) == NULL) {
@@ -65,7 +65,7 @@ void ToBeRep(void)
// 12345678901234567890123456789012345678901234567890123456789012345678901234567890
printf(" File echo Group File name Kbyte Date Announce\n");
printf("-------------------- ------------ ------------ ----- ---------- --------\n");
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
while (fread(&rep, sizeof(rep), 1, fp) == 1) {
printf("%-20s %-12s %-12s %5ld %s %s\n",

View File

@@ -50,9 +50,9 @@ void ProgName(void)
if (do_quiet)
return;
colour(WHITE, BLACK);
mbse_colour(WHITE, BLACK);
printf("\nMBFILE: MBSE BBS %s File maintenance utility\n", VERSION);
colour(YELLOW, BLACK);
mbse_colour(YELLOW, BLACK);
printf(" %s\n", COPYRIGHT);
}
@@ -94,7 +94,7 @@ void die(int onsig)
Syslog(' ', "MBFILE finished in %s", t_elapsed(t_start, t_end));
if (!do_quiet) {
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
fflush(stdout);
}
ExitClient(onsig);
@@ -107,11 +107,11 @@ void Help(void)
do_quiet = FALSE;
ProgName();
colour(LIGHTCYAN, BLACK);
mbse_colour(LIGHTCYAN, BLACK);
printf("Usage: mbfile [command] <options>\n\n");
colour(LIGHTBLUE, BLACK);
mbse_colour(LIGHTBLUE, BLACK);
printf(" Commands are:\n\n");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf(" a adopt <area> <file> [desc] Adopt file to area\n");
printf(" c check [area] Check filebase\n");
printf(" d delete <area> \"<filemask>\" Mark file(s) in area for deletion\n");
@@ -125,9 +125,9 @@ void Help(void)
printf(" s sort <area> Sort files in a file area\n");
printf(" t toberep Show toberep database\n");
printf(" u undelete <area> \"<filemask>\" Mark file(s) in area for undeletion\n");
colour(LIGHTBLUE, BLACK);
mbse_colour(LIGHTBLUE, BLACK);
printf("\n Options are:\n\n");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf(" -a -announce Suppress announce added files\n");
printf(" -q -quiet Quiet mode\n");
printf(" -v -virus Suppress virus scanning, use with care\n");

View File

@@ -73,13 +73,13 @@ void Help(void)
do_quiet = FALSE;
ProgName();
colour(LIGHTCYAN, BLACK);
mbse_colour(LIGHTCYAN, BLACK);
printf("\nUsage: mbindex <options>\n\n");
colour(LIGHTBLUE, BLACK);
mbse_colour(LIGHTBLUE, BLACK);
printf(" Options are:\n\n");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf(" -quiet Quiet mode\n");
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
printf("\n");
die(MBERR_COMMANDLINE);
}
@@ -94,11 +94,11 @@ void ProgName(void)
if (do_quiet)
return;
colour(WHITE, BLACK);
mbse_colour(WHITE, BLACK);
printf("\nMBINDEX: MBSE BBS %s Nodelist Index Compiler\n", VERSION);
colour(YELLOW, BLACK);
mbse_colour(YELLOW, BLACK);
printf(" %s\n", COPYRIGHT);
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
}
@@ -111,7 +111,7 @@ void die(int onsig)
ulockprogram((char *)"mbindex");
if (!do_quiet) {
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
show_log = TRUE;
}
@@ -129,7 +129,7 @@ void die(int onsig)
Syslog(' ', "MBINDEX finished in %s", t_elapsed(t_start, t_end));
if (!do_quiet)
colour(LIGHTGRAY, BLACK);
mbse_colour(LIGHTGRAY, BLACK);
ExitClient(onsig);
}
@@ -144,7 +144,7 @@ int main(int argc,char *argv[])
InitConfig();
InitFidonet();
TermInit(1, 80, 25);
mbse_TermInit(1, 80, 25);
t_start = time(NULL);
umask(002);
@@ -873,7 +873,7 @@ int nodebld(void)
}
if (!do_quiet) {
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf("\n");
}

View File

@@ -67,11 +67,11 @@ void ProgName()
if (do_quiet)
return;
colour(15, 0);
mbse_colour(15, 0);
printf("\nMBMSG: MBSE BBS %s - Message Base Maintenance Utility\n", VERSION);
colour(14, 0);
mbse_colour(14, 0);
printf(" %s\n", COPYRIGHT);
colour(7, 0);
mbse_colour(7, 0);
}
@@ -85,7 +85,7 @@ int main(int argc, char **argv)
InitConfig();
TermInit(1, 80, 25);
mbse_TermInit(1, 80, 25);
oldmask = umask(007);
t_start = time(NULL);
@@ -159,7 +159,7 @@ int main(int argc, char **argv)
if (!do_quiet) {
printf("\n");
colour(3, 0);
mbse_colour(3, 0);
}
if (do_index || do_link || do_kill || do_pack) {
@@ -183,19 +183,19 @@ void Help()
do_quiet = FALSE;
ProgName();
colour(12, 0);
mbse_colour(12, 0);
printf("\n Usage: mbmsg [command(s)] <options>\n\n");
colour(9, 0);
mbse_colour(9, 0);
printf(" Commands are:\n\n");
colour(3, 0);
mbse_colour(3, 0);
// printf(" i index Create new index files\n");
printf(" l link Link messages by subject\n");
printf(" k kill Kill messages (age & count)\n");
printf(" pa pack Pack deleted messages\n");
printf(" po post <to> <#> <subj> <file> <flavor> Post file in message area #\n\n");
colour(9, 0);
mbse_colour(9, 0);
printf(" Options are:\n\n");
colour(3, 0);
mbse_colour(3, 0);
printf(" -a -area <#> Process area <#> only\n");
printf(" -q -quiet Quiet mode\n");
@@ -210,7 +210,7 @@ void die(int onsig)
signal(onsig, SIG_IGN);
if (!do_quiet) {
printf("\r");
colour(3, 0);
mbse_colour(3, 0);
}
if (MsgBase.Locked)
@@ -238,7 +238,7 @@ void die(int onsig)
umask(oldmask);
if (!do_quiet) {
colour(7, 0);
mbse_colour(7, 0);
printf("\r \n");
}
ExitClient(onsig);
@@ -284,7 +284,7 @@ void DoMsgBase()
die(MBERR_DISK_FULL);
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%5ld .. %-40s", do_area, msgs.Name);
fflush(stdout);
}
@@ -314,7 +314,7 @@ void DoMsgBase()
Nopper();
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%5ld .. %-40s", arearec, msgs.Name);
fflush(stdout);
}
@@ -351,7 +351,7 @@ void DoMsgBase()
Nopper();
sprintf(Name, "User %s email area: mailbox", usrconfig.Name);
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r .. %-40s", Name);
fflush(stdout);
}
@@ -447,9 +447,9 @@ void KillArea(char *Path, char *Name, int DaysOld, int MaxMsgs, long Areanr)
if (Msg_Open(Path)) {
if (!do_quiet) {
colour(12, 0);
mbse_colour(12, 0);
printf(" (Killing)");
colour(13, 0);
mbse_colour(13, 0);
fflush(stdout);
}
@@ -565,7 +565,7 @@ void PackArea(char *Path, long Areanr)
if (Msg_Open(Path)) {
if (!do_quiet) {
colour(12, 0);
mbse_colour(12, 0);
printf(" (Packing)");
fflush(stdout);
}

View File

@@ -535,7 +535,7 @@ int Areas(void)
Mgrlog("Process areas taglists");
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Processing areas taglists...\n");
}
@@ -552,7 +552,7 @@ int Areas(void)
while ((fread(&mgroup, mgrouphdr.recsize, 1, gp)) == 1) {
if (mgroup.Active && mgroup.AutoChange && strlen(mgroup.AreaFile) && mgroup.UpLink.zone && SearchNode(mgroup.UpLink)) {
if (!do_quiet) {
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf("\rEcho group %-12s ", mgroup.Name);
fflush(stdout);
}
@@ -573,7 +573,7 @@ int Areas(void)
* Mark areas already present in the taglist.
*/
if (!do_quiet) {
colour(LIGHTRED, BLACK);
mbse_colour(LIGHTRED, BLACK);
printf("(check missing areas)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
fflush(stdout);
}
@@ -750,7 +750,7 @@ int Areas(void)
while ((fread(&fgroup, fgrouphdr.recsize, 1, gp)) == 1) {
if (fgroup.Active && fgroup.AutoChange && strlen(fgroup.AreaFile) && fgroup.UpLink.zone && SearchNode(fgroup.UpLink)) {
if (!do_quiet) {
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
printf("\r TIC group %-12s ", fgroup.Name);
fflush(stdout);
}
@@ -815,7 +815,7 @@ int Areas(void)
* Mark areas already present in the taglist.
*/
if (!do_quiet) {
colour(LIGHTRED, BLACK);
mbse_colour(LIGHTRED, BLACK);
printf("(check missing areas)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
fflush(stdout);
}

View File

@@ -62,9 +62,9 @@ int Notify(char *Options)
Syslog('+', "Notify \"%s\"", Options);
if (!do_quiet) {
colour(9, 0);
mbse_colour(9, 0);
printf("Writing notify messages\n");
colour(3, 0);
mbse_colour(3, 0);
}
if (strlen(Options)) {

View File

@@ -51,7 +51,7 @@ int Post(char *To, long Area, char *Subj, char *File, char *Flavor)
struct tm *t;
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("Post \"%s\" to \"%s\" in area %ld\n", File, To, Area);
}

View File

@@ -91,7 +91,7 @@ int ProcessTic(fa_list *sbl)
Temp = calloc(PATH_MAX, sizeof(char));
if (!do_quiet) {
colour(10, 0);
mbse_colour(10, 0);
printf("Checking \b\b\b\b\b\b\b\b\b\b");
fflush(stdout);
}

View File

@@ -620,9 +620,9 @@ void flush_queue(void)
IsDoing("Flush queue");
if (!do_quiet) {
colour(LIGHTBLUE, BLACK);
mbse_colour(LIGHTBLUE, BLACK);
printf("Flushing outbound queue\n");
colour(CYAN, BLACK);
mbse_colour(CYAN, BLACK);
}
temp = calloc(PATH_MAX, sizeof(char));

View File

@@ -543,7 +543,7 @@ void NewsUUCP(void)
IsDoing((char *)"UUCP Batch");
if (!do_quiet) {
colour(10, 0);
mbse_colour(10, 0);
printf("Process UUCP Newsbatch\n");
}

View File

@@ -148,9 +148,9 @@ void ScanFull()
IsDoing("Scanning mail");
if (!do_quiet) {
colour(9, 0);
mbse_colour(9, 0);
printf("Scanning mail\n");
colour(3, 0);
mbse_colour(3, 0);
fflush(stdout);
}
@@ -164,9 +164,9 @@ void ScanFull()
Nopper();
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%8s %-40s", usrconfig.Name, usrconfig.sUserName);
colour(13, 0);
mbse_colour(13, 0);
fflush(stdout);
}
@@ -228,9 +228,9 @@ void ScanFull()
Nopper();
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%5ld .. %-40s", arearec, msgs.Name);
colour(13, 0);
mbse_colour(13, 0);
fflush(stdout);
}
@@ -343,9 +343,9 @@ void ScanOne(char *path, unsigned long MsgNum)
IsDoing("Scanning mail");
if (!do_quiet) {
colour(9, 0);
mbse_colour(9, 0);
printf("Scanning mail\n");
colour(3, 0);
mbse_colour(3, 0);
fflush(stdout);
}
@@ -396,9 +396,9 @@ void ScanOne(char *path, unsigned long MsgNum)
if ((msgs.Active) && (msgs.Type == ECHOMAIL || msgs.Type == NETMAIL || msgs.Type == NEWS)) {
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%5ld .. %-40s", Area, msgs.Name);
colour(13, 0);
mbse_colour(13, 0);
fflush(stdout);
}
@@ -491,9 +491,9 @@ int RescanOne(faddr *L, char *marea, unsigned long Num)
IsDoing("ReScan mail");
if (!do_quiet) {
colour(9, 0);
mbse_colour(9, 0);
printf("ReScan mail\n");
colour(3, 0);
mbse_colour(3, 0);
fflush(stdout);
}
@@ -520,9 +520,9 @@ int RescanOne(faddr *L, char *marea, unsigned long Num)
if ((msgs.Active) && ((msgs.Type == ECHOMAIL) || (msgs.Type == NEWS) || (msgs.Type == LIST))) {
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%5ld .. %-40s", Area, msgs.Name);
colour(13, 0);
mbse_colour(13, 0);
fflush(stdout);
}

View File

@@ -191,7 +191,7 @@ void ScanNews(void)
}
if (!do_quiet) {
colour(10, 0);
mbse_colour(10, 0);
printf("Scan for new news articles\n");
}
@@ -216,7 +216,7 @@ void ScanNews(void)
}
Syslog('m', "Scan newsgroup: %s", Msgs.Newsgroup);
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%-40s", Msgs.Newsgroup);
fflush(stdout);
}

View File

@@ -104,7 +104,7 @@ int storeecho(faddr *f, faddr *t, time_t mdate, int flags, char *subj, char *msg
echo_imp++;
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r%6u => %-40s\r", echo_in, msgs.Name);
fflush(stdout);
}

View File

@@ -355,7 +355,7 @@ int LoadTic(char *inb, char *tfn)
* Show on screen what we are doing
*/
if (!do_quiet) {
colour(3, 0);
mbse_colour(3, 0);
printf("\r");
for (i = 0; i < 79; i++)
printf(" ");

View File

@@ -268,7 +268,7 @@ int TossPkt(char *fn)
FILE *pkt;
if (!do_quiet) {
colour(10, 0);
mbse_colour(10, 0);
printf("Tossing packet %s\n", fn);
}

View File

@@ -712,7 +712,7 @@ void TestTracker(faddr *dest)
addr.node = dest->node;
addr.point = dest->point;
colour(7, 0);
mbse_colour(7, 0);
Syslog('+', "Test route to %s", aka2str(addr));
rc = TrackMail(addr, &result);

View File

@@ -70,7 +70,7 @@ int unpack(char *fn)
int rc = 0, ld;
if (!do_quiet) {
colour(11, 0);
mbse_colour(11, 0);
printf("Unpacking file %s\n", fn);
}