🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #743

Re: "Path"

#743
From: Don Lewis
Date: Thu, 18 Oct 1990 00:41
69 lines
3180 bytes
In article <1990Oct3.145435.19729@wdl1.wdl.fac.com> wrl@wdl1.wdl.fac.com (Bill Lewandowski) writes:
>Hi,
>Have a question on path,
>our return paths look like this with Cnews (latest version):
>
>Path: wdl1.wdl.fac.com!wdl30!ronc
>From: ronc@wdl30.wdl.fac.com (Ron Coll)
>
>We do no get good responces from people because
>the return path should be:
>
>Path: wdl1.wdl.fac.com!wdl30.wdl.fac.com!ronc
>

If you are posting from the other hosts using the mini-inews supplied
with nntp and gethostbyname() does not return a fully qualified domain
name for the current host (as on Suns using YP/NIS), then the mini-inews
will append the configured value of DOMAIN to the From: header, but not
the Path: (and Originator: in 1.5.10) header.  A simple-minded patch (for
1.5.10) follows.

-----------------------------Cut Here---------------------------------
*** ORIGinews.c	Fri Aug 10 23:53:40 1990
--- inews.c	Wed Sep 19 01:43:15 1990
***************
*** 164,170 ****
--- 164,179 ----
  				if (!seen_fromline)
  					gen_frompath(FROM);
  				else
+ #ifdef DOMAIN
+ 				{
+ 					if (index( host_name, '.'))
  fprintf(ser_wr_fp, "Originator: %s@%s\r\n", passwd->pw_name, host_name);
+ 					else
+ fprintf(ser_wr_fp, "Originator: %s@%s.%s\r\n", passwd->pw_name, host_name, DOMAIN);
+ 				}
+ #else /* DOMAIN */
+ fprintf(ser_wr_fp, "Originator: %s@%s\r\n", passwd->pw_name, host_name);
+ #endif /* DOMAIN */
  			} else {
  			        continue;
  			}
***************
*** 350,357 ****
--- 359,375 ----
  	/* Only the login name - nntp server will add uucp name */
  		fprintf(ser_wr_fp, "Path: %s\r\n", passwd->pw_name);
  #else /* HIDDENNET */
+ #ifdef DOMAIN
+ 		if (index(host_name, '.'))
+ 			fprintf(ser_wr_fp, "Path: %s!%s\r\n", host_name,
+ 				passwd->pw_name);
+ 		else
+ 			fprintf(ser_wr_fp, "Path: %s.%s!%s\r\n", host_name,
+ 				DOMAIN, passwd->pw_name);
+ #else /* DOMAIN */
  		fprintf(ser_wr_fp, "Path: %s!%s\r\n", host_name,
  			passwd->pw_name);
+ #endif /* DOMAIN */
  #endif /* HIDDENNET */
  	}
  }
-----------------------------Cut Here---------------------------------
-- 
Don "Truck" Lewis                      Harris Semiconductor
Internet:  del@mlb.semi.harris.com     PO Box 883   MS 62A-028
Phone:     (407) 729-5205              Melbourne, FL  32901
Technical Details
Message-ID: <1990Oct18.004159.25479@mlb.semi.harris.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!uakari.primate.wisc.edu!uflorida!mlb.semi.harris.com!thrush.mlb.semi.harris.com!del
References: <1990Oct3.145435.19729@wdl1.wdl.fac.com>

Show Full Headers
Complete Article Headers
Message-ID: <1990Oct18.004159.25479@mlb.semi.harris.com>
Subject: Re: "Path"
Date: Thu, 18 Oct 1990 00:41:59 +0000
From: del@thrush.mlb.semi.harris.com (Don Lewis)
References: <1990Oct3.145435.19729@wdl1.wdl.fac.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utstat!news-server.csri.toronto.edu!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!uakari.primate.wisc.edu!uflorida!mlb.semi.harris.com!thrush.mlb.semi.harris.com!del
Newsgroups: news.software.b,news.software.nntp
Sender: news@mlb.semi.harris.com
Followup-To: news.software.nntp
Organization: Harris Semiconductor, Melbourne FL
Lines: 68
Nntp-Posting-Host: thrush.mlb.semi.harris.com