🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39571

Patch for dreaderd (diablo) receiving feed from INN

#39571
From: bert hubert
Date: Wed, 01 Sep 1999 00:00
41 lines
1902 bytes
Hi,

We feed our diablo readers articles from INN. The readers only store
overview data and need to calculate the size of articles. Currently diablo
forgets to do this. We fixed this.

Symptoms are that Outlook users see all articles as being 1kb in size.

Regards,


bert hubert.

--- feed.c.orig Thu Oct 22 08:14:23 1998
+++ feed.c      Wed Sep  1 09:18:40 1999
@@ -227,9 +227,15 @@
        if ((conn->co_Flags & COF_INHEADER) || (conn->co_Flags &
(COF_POST|COF_WASCONTROL))) {
            if (len > 0)
                buf[len-1] = '\n';
-           conn->co_ByteCounter += len;
+
            MBWrite(&conn->co_ArtBuf, buf, len);
        }
+
+       /* we now count all bytes, even if not storing the article. This fixes
+          overview data, users were seeing 1kb articles */
+
+       if(!(conn->co_Flags & COF_INHEADER))
+               conn->co_ByteCounter += len;
     }
     if (len <= 0) {
        if (len < 0)


-- 
    Delft University   |   Absoluut geen woordvoerder van Casema. Gewoon
     of Technology,    |               niet geloven wat ik zeg.
 Department of Physics |          Inspice et cautus eris - D11T'95

Technical Details
Message-ID: <slrn7spl10.14e.ahu@hubert.ds9a.tudelft.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn7spl10.14e.ahu@hubert.ds9a.tudelft.nl>
Subject: Patch for dreaderd (diablo) receiving feed from INN
Date: Wed, 01 Sep 1999 00:00:00 +0000
From: ahu@casema.net (bert hubert)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 519634919
X-Trace: reader1.casema.net 936170544 5545 212.64.76.72
X-Server-Date: 01 Sep 1999 07:22:24 GMT
User-Agent: slrn/0.9.5.4 (UNIX)
Newsgroups: news.software.nntp
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: abuse@casema.net