🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #61907

Re: Trn 4.0-test72 leaves out my name on posts

#61907
From: Colin Watson
Date: Sat, 27 May 2000 00:00
36 lines
2150 bytes
Jeremy <bofh@netscum.dk> wrote:
>Colin Watson <cjw44@flatline.org.uk> wrote:
>> 4.0-test73 has some provision for adjusting your From: line, mainly by
>> patching an environment variable into the default $NEWSHEADER et al.
>
>That was already in there, for quite a long time, it just wasn't
>documented until my environment docs got into test73.

Oops, I didn't notice that it was the default in test72! I always rolled
my own based on that in the man page, anyway.

>> I've submitted a patch to improve the existing interaction between this
>> and cancels/supersedes.
>
>That's in test73 already, as a patch I sent Wayne a while back.  Cancels
>and supersedes will use your custom From line, and trn will let you cancel
>or supersede articles even if you've customized your From line.

Except that it only works if the local part in the customized From: line
is the same as your login name:

    if ((!instr(from_buf,hostname,FALSE)
      && strcaseNE(getval("FROM",""),from_buf))
     || (!instr(from_buf,loginName,TRUE)
      && !instr(reply_buf,loginName,TRUE)
      ...

The patch I sent rearranges this. (I realize this lets you do
'FROM=victim@localhost trn', cancel, cancel, cancel, but it's not like
news is secure anyway ...)

-- 
Colin Watson                                     [cjw44@flatline.org.uk]
"*BEEP* Troll Detected. Killfile, Ignore, Flame?"

Technical Details
Message-ID: <8gpgp1$cba$1@riva.ucam.org>
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: <8g10hm$16sk$1@news.eecs.umich.edu> <a4DX4.9174$85.37372@news1.rdc1.tx.home.com> <8gn1ic$4b5$1@riva.ucam.org> <959461277.741475@news.netscum.dk>

Show Full Headers
Complete Article Headers
Message-ID: <8gpgp1$cba$1@riva.ucam.org>
Subject: Re: Trn 4.0-test72 leaves out my name on posts
Date: Sat, 27 May 2000 00:00:00 +0000
From: cjw44@flatline.org.uk (Colin Watson)
References: <8g10hm$16sk$1@news.eecs.umich.edu> <a4DX4.9174$85.37372@news1.rdc1.tx.home.com> <8gn1ic$4b5$1@riva.ucam.org> <959461277.741475@news.netscum.dk>
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: 628078219
X-Trace: riva.ucam.org 959465057 12650 131.111.193.196 (27 May 2000 22:04:17 GMT)
Organization: riva.ucam.org
Newsgroups: news.software.readers