Fix for mbfido news

This commit is contained in:
Michiel Broek 2004-04-14 19:27:56 +00:00
parent e802e19058
commit b21dda8071
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ v0.51.4 11-Apr-2004
the remote newsserver. the remote newsserver.
You may need to edit or remove /opt/mbse/tmp/newsout to remove You may need to edit or remove /opt/mbse/tmp/newsout to remove
postings for the remote newsserver with echomail messages. postings for the remote newsserver with echomail messages.
Fixed a bug that no news was fetched at all.
mbnntp: mbnntp:
New program, news server to read echomail with a news client. New program, news server to read echomail with a news client.

View File

@ -205,7 +205,8 @@ void ScanNews(void)
while (fread(&Msgs, Msgshdr.recsize, 1, pAreas) == 1) { while (fread(&Msgs, Msgshdr.recsize, 1, pAreas) == 1) {
fseek(pAreas, Msgshdr.syssize, SEEK_CUR); fseek(pAreas, Msgshdr.syssize, SEEK_CUR);
if ((Msgs.Active) && strlen(Msgs.Newsgroup) && (msgs.Type == NEWS)) { // Syslog('m', "Check newsgroup: %s %d", Msgs.Newsgroup, Msgs.Type);
if ((Msgs.Active) && strlen(Msgs.Newsgroup) && (Msgs.Type == NEWS)) {
if (IsSema((char *)"upsalarm")) { if (IsSema((char *)"upsalarm")) {
Syslog('+', "Detected upsalarm semafore, aborting newsscan"); Syslog('+', "Detected upsalarm semafore, aborting newsscan");
break; break;