Thread View: news.software.nntp
1 messages
1 total messages
Started by bert hubert
Wed, 01 Sep 1999 00:00
Patch for dreaderd (diablo) receiving feed from INN
Author: bert hubert
Date: Wed, 01 Sep 1999 00:00
Date: Wed, 01 Sep 1999 00:00
41 lines
1902 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads