🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Kim DeVaughn Sun, 19 Sep 1999 00:00
Re: nntp access with trn
#52223
Author: Kim DeVaughn
Date: Sun, 19 Sep 1999 00:00
47 lines
1957 bytes
In article <7s1e3e$ofo$1@nnrp03.primenet.com>,
	Wotan <wotan@deathpenguin.com> wrote:
|
| What have I not configured to allow posting?  The man pages and trnaccess
| help file leave a bit to be desired in this area.

I dunno ... works fine for me with trn4-test72.

You *are* talking about some version of trn4, aren't you (there's no
X-Newsreader: header in your posting that would indicate that)?

If so, and if your access file has entries like:

 Auth User = <userid>
 Auth Password = <passwd>

in it for that server's entry, the only thing I can think of is that
perhaps a different p/w is required for *posting*, as opposed to one
that only allows *read* access.

Things to try:

Does the server still grant you read access if the above Auth statements
are removed from your access file?

Can you post if you manually access the server using your id/passwd with
something like:

 telnet servername.foo 119
 authinfo user <youruserid>
 authinfo pass <yourpasswd>
 group alt.test
 post

or does it give you an error msg at that point?

What happens if you manually read (article <number>) an article first,
then try "post"?

What s/w is the server running?

/kim

================================
"You are Number 6."   --Number 2

Re: nntp access with trn
#52240
Author: Russ Allbery
Date: Mon, 20 Sep 1999 00:00
14 lines
1183 bytes
Jeremy <jeremy@exit109.com> writes:

> Well, presumably you maintain the installation, but you're not a user.
> So it doesn't annoy *you*, so you don't hack it, and that doesn't
> count. :)

I use trn, actually, just not very much any more.  Used to maintain a ton
of internal documentation on how to do scary things with it, and wrote my
own version of Pnews in Perl as something like my third Perl project.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: nntp access with trn
#52245
Author: Jeremy
Date: Mon, 20 Sep 1999 00:00
29 lines
1810 bytes
Russ Allbery  <rra@stanford.edu> wrote:

>> I believe this was done because of servers that drop Sender headers.
> 
> Don't make me start a rant on software that second-guesses the local
> server administrator.  If I'm dropping Sender headers, well gee, doesn't
> that mean that maybe I don't want Sender headers, even if you call them
> Originator?

Trn has a thing about trying to Be Good.  It's the same kind of thing
that makes doing certain things difficult if you're using it on a system
where login@hostname has nothing to do with your email address.  In that
case, you can't cancel your articles, for example.  I recently finally
got around to fixing that particular annoyance, actually.

>> I'm curious to know if there are any trn4 users who *don't* hack it
>> out of the code.
> 
> Yeah, us, but that's just because I never got around to it.

Well, presumably you maintain the installation, but you're not a user.
So it doesn't annoy *you*, so you don't hack it, and that doesn't
count. :)

-- 
Jeremy  |  jeremy@exit109.com
"Who's scruffy-looking?"  --Han Solo

Re: nntp access with trn
#52246
Author: Jeremy
Date: Mon, 20 Sep 1999 00:00
53 lines
2635 bytes
Wotan <wotan@deathpenguin.com> wrote:

>> You'll have to hack it out.  I don't think it's an option.  
> 
> Apparently, neither is the X-Newsreader.  Bah.  

Kim already posted a patch for Originator, which is virtually identical
to mine except for whitespace.  Here's my X-Newsreader mod, which is
against Pnews.SH:

*** Pnews.SH    1999/07/28 05:23:52     1.1.1.1
--- Pnews.SH    1999/07/28 05:26:53     1.2
***************
*** 631,640 ****
                /^X-ORIGINAL-NEWSGROUPS:/d;
                /^[Cc][Cc]:/d;
                /^Distribution: world/d;
-               /^X-Newsreader:/d;
-               /^X-Newsposter:/d;
-               /^[      ]*$/i\
- X-Newsreader: '$pnewsversion'
                }'
            case "$NNTPSERVER" in
            local|'') share_connection=no;;
--- 631,636 ----

Trivial.  However, I actually generate the exact same X-Newsreader
from within trn, which enables me to look normal but then modify the
header in my editor if I'm wanting stealth.

[Russ]
>> (Which is stupid; if they're going to unconditionally put the actual
>> sender of the article into the headers, at least they could have used
>> Sender, which is the standard header for such things.)

I believe this was done because of servers that drop Sender headers.

I'm curious to know if there are any trn4 users who *don't* hack it out
of the code.  I'm sure it can be disappeared, if there is a large
consensus that it ought to be.  Or an option can be added to disable it,
perhaps as undocumented as the one to shut Pnews up when you post (which
I feel is perhaps too well-documented, actually).

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

What is it they say about "a little knowledge"? :)

-- 
Jeremy  |  jeremy@exit109.com
"Meowers have proven that meow does indeed equal meow."
              --Antaine (news.admin.net-abuse.usenet)

Re: nntp access with trn
#52249
Author: Russ Allbery
Date: Mon, 20 Sep 1999 00:00
23 lines
1485 bytes
Jeremy <jeremy@exit109.com> writes:

> [Russ]
>>> (Which is stupid; if they're going to unconditionally put the actual
>>> sender of the article into the headers, at least they could have used
>>> Sender, which is the standard header for such things.)

> I believe this was done because of servers that drop Sender headers.

Don't make me start a rant on software that second-guesses the local
server administrator.  If I'm dropping Sender headers, well gee, doesn't
that mean that maybe I don't want Sender headers, even if you call them
Originator?

> I'm curious to know if there are any trn4 users who *don't* hack it out
> of the code.

Yeah, us, but that's just because I never got around to it.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: nntp access with trn
#52265
Author: Jeremy
Date: Mon, 20 Sep 1999 00:00
15 lines
1080 bytes
Wotan <wotan@deathpenguin.com> wrote:

> Quickly determined that a much older version of inews was being used by
> Primenet.  One that doesn't do the remote auth thing.  
> 
> Oh well, maybe I should compile my own. :)

Use the inews that comes with trn4.  Trn will simply hand off its NNTP
connection to inews for posting.

-- 
Jeremy  |  jeremy@exit109.com
"Who's scruffy-looking?"  --Han Solo

Re: nntp access with trn
#52274
Author: 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    ]
-----------------------------------------------------------------------------

Re: nntp access with trn
#52291
Author: Russ Allbery
Date: Mon, 20 Sep 1999 00:00
15 lines
1239 bytes
Wotan <wotan@deathpenguin.com> writes:

> 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.  (Which is
stupid; if they're going to unconditionally put the actual sender of the
article into the headers, at least they could have used Sender, which is
the standard header for such things.)

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: nntp access with trn
#52303
Author: Jeremy
Date: Tue, 21 Sep 1999 00:00
23 lines
1663 bytes
Wotan <wotan@deathpenguin.com> wrote:

>> I'm curious to know if there are any trn4 users who *don't* hack it
>> out of the code.  I'm sure it can be disappeared, if there is a large
>> consensus that it ought to be.  Or an option can be added to disable
>> it, perhaps as undocumented as the one to shut Pnews up when you post
>> (which I feel is perhaps too well-documented, actually).
> 
> There is one of them things?  :)  I always eliminated that segment of
> Pnews and Pnews.SH.  

Heh.. it's supposed to be a thing where, if you have figured out how to
shut it up, then you don't need the warnings anymore. :)  I suppose
hacking the relevant code out of the source might qualify you too, of
course...

-- 
Jeremy  |  jeremy@exit109.com
"I have a lot of friends many of them is hackers. We can together
 put something against aol.com.  I'm pretty sure that it will be many
 others which will help us."        -- Wieslaw Kochanski

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