From b21dda8071d7c48d0dfd90ce1dbd2139d130536f Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Wed, 14 Apr 2004 19:27:56 +0000 Subject: [PATCH] Fix for mbfido news --- ChangeLog | 1 + mbfido/scannews.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 001ffd48..baceafeb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,7 @@ v0.51.4 11-Apr-2004 the remote newsserver. You may need to edit or remove /opt/mbse/tmp/newsout to remove postings for the remote newsserver with echomail messages. + Fixed a bug that no news was fetched at all. mbnntp: New program, news server to read echomail with a news client. diff --git a/mbfido/scannews.c b/mbfido/scannews.c index 563a5431..19a2f9d8 100644 --- a/mbfido/scannews.c +++ b/mbfido/scannews.c @@ -205,7 +205,8 @@ void ScanNews(void) while (fread(&Msgs, Msgshdr.recsize, 1, pAreas) == 1) { 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")) { Syslog('+', "Detected upsalarm semafore, aborting newsscan"); break;