🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Thomas 'Mike' Michlmayr Thu, 22 Feb 1996 00:00
Followups without References (a solution)
#5155
Author: Thomas 'Mike' Michlmayr
Date: Thu, 22 Feb 1996 00:00
73 lines
3056 bytes
Hi!

Below is a patch that makes innd refuse any followup that does not have a
References header (but does not (yet) for a valid Header). It is written for 
unoff3, but it should work with inn1.4sec2 just as well.

Use this patch at your own risk!!

===== inn-strict-followups.patch =====================================
*** config/config.dist.orig	Thu Feb 22 17:23:02 1996
--- config/config.dist	Thu Feb 22 17:19:18 1996
***************
*** 376,381 ****
--- 376,387 ----
  ##  Five is number of .signature lines + 1.
  #### =()<LINECOUNT_FUZZ		@<LINECOUNT_FUZZ>@>()=
  LINECOUNT_FUZZ		5
+ ##  Check if there is a Reference header in followups. If not, the article
+ ##  dropped. This is a bit dangerous as many sites refuse to abide to RFC1036.
+ ##  If many large sites will use this option, the non-abiding sites should
+ ##  go away soon. Pick DO or DONT.
+ #### =()<CHECK_REFERENCES		@<CHECK_REFERENCES>@>()=
+ CHECK_REFERENCES	DO
  ##  Have innd throttle itself after this many I/O errors.
  #### =()<IO_ERROR_COUNT		@<IO_ERROR_COUNT>@>()=
  IO_ERROR_COUNT		50
*** include/configdata.h.orig	Thu Feb 22 17:22:53 1996
--- include/configdata.h	Thu Feb 22 17:19:24 1996
***************
*** 221,226 ****
--- 221,229 ----
      /* If checking, the error must be within LINECOUNT_FUZZ lines. */
      /* =()<#define LINECOUNT_FUZZ	@<LINECOUNT_FUZZ>@>()= */
  #define LINECOUNT_FUZZ	5
+     /* check references on followups */
+     /* =()<#define @<CHECK_REFERENCES>@_CHECK_REFERENCES>()= */
+ #define DO_CHECK_REFERENCES
      /* Have innd throttle itself after this many I/O errors. */
      /* =()<#define IO_ERROR_COUNT	@<IO_ERROR_COUNT>@>()= */
  #define IO_ERROR_COUNT	50
*** innd/art.c.orig	Thu Feb 22 17:22:41 1996
--- innd/art.c	Thu Feb 22 17:19:29 1996
***************
*** 1013,1018 ****
--- 1013,1032 ----
  		(void)strcpy(in, p);
  	}
      }
+ 
+ #if	defined(DO_CHECK_REFERENCES)
+     /* If this is a followup, check if there is a reference header */
+     in = HDR(_subject);
+     if (*in == 'R' && EQn(in, "Re: ", 4)) {
+ 	p = HDR(_references);
+ 	if (*p == '\0') {
+ 	    (void)sprintf(buff,
+ 		"Followup without \"References\" header");
+ 	    return buff;
+ 	}
+     }
+ #endif	/* defined(DO_CHECK_REFERENCES) */
+ 
      return NULL;
  }

======================================================================

-- 
Thomas 'Mike' Michlmayr can not assert the truth of all statements in 
this article and still be consistent. <mike@cosy.sbg.ac.at>


Re: Followups without References (a solution)
#5331
Author: Alan Brown
Date: Wed, 28 Feb 1996 00:00
24 lines
1483 bytes
In article <4gi628$h8p@esel.cosy.sbg.ac.at>,
Thomas 'Mike' Michlmayr <mike@cosy.sbg.ac.at> wrote:
>Hi!
>
>Below is a patch that makes innd refuse any followup that does not have a
>References header (but does not (yet) for a valid Header). It is written for 
>unoff3, but it should work with inn1.4sec2 just as well.

This functionality is already in the code, commented out.

Have a look in inews.c

Rich had it in place for 1.3 and removed it for 1.4 because of complaints.

Enabling it causes inews to fail completely so there's some bug stomping
needed....

AB
-- 
"But you can't say they have arrived to classify your nervous lies
 What's right, what's not, what may not be. Don't try your tricky tests on me
 For I won't live in fear my friend - that every day could be my end"

Re: Followups without References (a solution)
#5334
Author: Thomas 'Mike' Michlmayr
Date: Wed, 28 Feb 1996 00:00
26 lines
1397 bytes
In article <4gvklv$8i0@papaioea.manawatu.gen.nz>,
Alan Brown <alan@papaioea.manawatu.planet.org.nz> wrote:
[.. patch to make innd refuse f'ups without references ..]
>
>This functionality is already in the code, commented out.

My patch enables inn to refuse ANY followup without references-header,
not just those posted with inn's inews.

[...]
>Rich had it in place for 1.3 and removed it for 1.4 because of complaints.

I never used inn prior to 1.4, so i didn't know about that. still it's a nice
feature to have.

>Enabling it causes inews to fail completely so there's some bug stomping
>needed....

Well, my patch works ;-)

-- 
Thomas 'Mike' Michlmayr can not assert the truth of all statements in 
this article and still be consistent. <mike@cosy.sbg.ac.at>


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