🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #52274

Re: nntp access with trn

#52274
From: Kim DeVaughn
Date: Mon, 20 Sep 1999 00:00
61 lines
2901 bytes
In article <7s4rcb$dm3$1@nnrp03.primenet.com>,
	Wotan <wotan@deathpenguin.com> wrote:
|
| In article <ylr9judn2p.fsf@windlord.stanford.edu>,
| 	  Russ Allbery <rra@stanford.edu> posted, then thought about:
| >
| >> Now how does one modify the Originator line in inews?  I don't want the
| >> thing there.  Eliminating the entire code string, caused the entire body
| >> to be read as header.
| >
| >You'll have to hack it out.  I don't think it's an option.

| Been trying to hack it.  But, my c is very limited. :)
|
| Compleately eliminating the offending lines causes inews to not
| differentiate between the header and body - and it refuses to post as it
| sees "no body".

Yeah ... you need to make sure there's a blamk line (as below does).


| I know it can be done, was hoping for pointers.  :)

Here's a patch that works for me (taken against -test72):


diff -uNr trn4-test72+kd.orig/inews.c trn4-test72+kd/inews.c
--- trn4-test72+kd.orig/inews.c	Sun Jan 17 18:01:23 1999
+++ trn4-test72+kd/inews.c	Sun Sep  5 18:36:54 1999
@@ -195,9 +196,17 @@
     fputs(headbuf, nntplink.wr_fp);
     if (!has_pathline)
 	fprintf(nntplink.wr_fp,"Path: not-for-mail%s",line_end);
+    if (!has_fromline)
+        fprintf(nntplink.wr_fp,"From: %s@%s (%s)%s%s",
+		loginName,phostname,getval("NAME",realName),line_end,line_end);
+    else
+        fprintf(nntplink.wr_fp,"%s",line_end);
+
+/*
     fprintf(nntplink.wr_fp, "%s: %s@%s (%s)%s%s",
 	    has_fromline? "Originator" : "From",loginName,phostname,
 	    getval("NAME",realName),line_end,line_end);
+*/
 
     had_nl = 1;
     while (fgets(headbuf, headbuf_size, stdin)) {


| On the plus side, I did figure out how to increase MAX_SIGLENGTH.  :)

I hope you didn't make it *too* large ...

/kim

-----------------------------------------------------------------------------
Kim DeVaughn             [  "All sweet things have one thing in common ...  ]
kimdv@best.com           [   ... a tendency to make you sick."  --Soolin    ]
-----------------------------------------------------------------------------

Technical Details
Message-ID: <37e5f619$0$205@nntp1.ba.best.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <7s1e3e$ofo$1@nnrp03.primenet.com> <7s4poa$s7r$1@nnrp02.primenet.com> <ylr9judn2p.fsf@windlord.stanford.edu> <7s4rcb$dm3$1@nnrp03.primenet.com>

Show Full Headers
Complete Article Headers
Message-ID: <37e5f619$0$205@nntp1.ba.best.com>
Subject: Re: nntp access with trn
Date: Mon, 20 Sep 1999 00:00:00 +0000
From: kimdv@best.com (Kim DeVaughn)
References: <7s1e3e$ofo$1@nnrp03.primenet.com> <7s4poa$s7r$1@nnrp02.primenet.com> <ylr9judn2p.fsf@windlord.stanford.edu> <7s4rcb$dm3$1@nnrp03.primenet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 527362249
Summary: patchit ...
X-Trace: nntp1.ba.best.com 937817625 205 kimdv@206.184.139.134
Organization: Kim's Home for Wayward Cocktail Waitresses & Hors d'oeuvre Girls
Newsgroups: news.software.readers