🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Rich Ragan Thu, 27 Jun 1991 19:37
nntp and archiving
#1806
Author: Rich Ragan
Date: Thu, 27 Jun 1991 19:37
33 lines
2024 bytes
Awhile back I reported an nn problem when you specify archiving using
>file-path in the GROUPS file and you are running nntp. What you
get archived is only the headers. The problem still exists at patch
level 16. The code that needs repair is in news.c in the following
area (source code as follows)

#ifdef NNTP
    } else
    if (use_nntp) {
	lazy = (current_group->master_flag & M_ALWAYS_DIGEST) == 0
	    && (modes & LAZY_BODY) ? 1 : 0;
	f = nntp_get_article(art->a_number, lazy);
	if (f == NULL) return NULL;
#endif /* NNTP */
    } else {
	sprintf(group_file_name, "%d", art->a_number);

This code needs to take the archive flag into account as well
when it decides whether to get just the header or the whole
body. There is some other code a little later also calling
nntp_get_article that I don't understand when it is used.
However, for now I am getting archiving via the kludge of
adding the D flag for digesting to groups I want archived and
that suggest the above code might be the only area needing a
change. However, I haven't time right now to experiment further
and pass the info on for those who are interested or might
want to do the same thing and have the same circumstances.

--
Richard R. Ragan   rrr@svl.cdc.com    (408) 496-4340 
Control Data Corporation - Silicon Valley Operations
5101 Patrick Henry Drive, Santa Clara, CA 95054-1111
Re: nntp and archiving
#1810
Author: Darwin C. Weyh
Date: Fri, 28 Jun 1991 15:48
21 lines
1346 bytes
I made the following change in news.c to correct the NNTP achive problem:

#ifdef NNTP
    } else
    if (use_nntp) {
	lazy = (current_group->master_flag & M_ALWAYS_DIGEST) == 0
/* Add the below line */
	    && !(current_group->master_flag & M_AUTO_ARCHIVE)
/* end of added stuff */
	    && (modes & LAZY_BODY) ? 1 : 0;
	f = nntp_get_article(art->a_number, lazy);
	if (f == NULL) return NULL;
#endif /* NNTP */
    } else {
	sprintf(group_file_name, "%d", art->a_number);

--
============================================================================
Darwin C. Weyh -- Consultant for the Los Angeles Dept of Water and Power
POB 111 Rm 848   Los Angeles,  CA 90012  (213) 580-0822
======================= elroy.jpl.nasa.gov!ladwp!weyh ======================
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