Thread View: news.software.nntp
2 messages
2 total messages
Started by Julien ÉLIE
Sat, 23 Aug 2014 20:15
Specificities of header-only feeding
Author: Julien ÉLIE
Date: Sat, 23 Aug 2014 20:15
Date: Sat, 23 Aug 2014 20:15
34 lines
2589 bytes
2589 bytes
Hi all, I am currently looking at a patch that adds a header-only feeding capability to pullnews (a tool shipped with INN, that pulls news from one or several news servers and feed it to another). As far as I know, when a header-only feed is used, every article must have a Bytes: header field, and a control message must be feeded entirely (with its body). Only the headers, followed by a blank line, of articles other than control messages are fed. Are there other specificities? How should the Bytes: header field be computed for header-only feeds? Is there a specification somewhere? Especially: - If an article already has one, should it be replaced by a new computed value? (it may have been totally wrong, for instance Bytes: 1) - If a Bytes: header field is added, should its value take into account the Bytes: header field itself? (I believe it should not because if the reader then downloads the article, this header field will not be present.) - Should the count use the same rules as the ones for the :bytes metadata? (CRLF counts for two bytes, dot-stuffing not counted, terminating .CRLF not counted...) Thanks for your points of view on these subjects, -- Julien ÉLIE « Timeo Danaos et dona ferentes. » (Laocoon de Virgile)
Re: Specificities of header-only feeding
Author: Julien ÉLIE
Date: Tue, 26 Aug 2014 19:24
Date: Tue, 26 Aug 2014 19:24
35 lines
2770 bytes
2770 bytes
Responding to myself, I believe the following answers are the most reasonable. Here is what I came up with. Do not hesitate to tell if you have another opinion. > - If an article already has a Bytes: header field, should it be replaced by > a new computed value? (it may have been totally wrong, for instance > Bytes: 1) No alteration done to an existing header. When the article is downloaded, this wrongly calculated header will be present. > - If a Bytes: header field is added, should its value take into > account the Bytes: header field itself? (I believe it should not > because if the reader then downloads the article, this header field > will not be present.) The added Bytes: header should not be counted because in fine this header will not be in the downloaded article. > - Should the count use the same rules as the ones for the :bytes > metadata? (CRLF counts for two bytes, dot-stuffing not counted, > terminating .CRLF not counted...) The same computation as the :bytes metadata should be used (since that count is standardized, better use it). Anyway, in a header-only feed, this Bytes: header field is merely informative so an approximative count will normally be fine to decide whether to download the article afterwards. -- Julien ÉLIE « Timeo Danaos et dona ferentes. » (Laocoon de Virgile)
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