🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #870

Re: mailing lists -> newsgroups

#870
From: Kris Stephens [Hail Eris!]
Date: Thu, 20 Dec 1990 06:20
32 lines
2269 bytes
In article <1990Dec19.230106.13613@spectrum.CMC.COM> news@spectrum.CMC.COM writes:
>In /usr/lib/aliases, I have a line like this to make a two-way gateway to
>a local newsgroup:
>
>ietf-hosts: "|grep -v '^From '|/usr/news/bin/inject/inews -h -n ietf.hosts -a Automatically"

Watch out on this.  It assumes that the inbound mail has no non-header
lines starting with 'From ', which is not guaranteed.  'sed 1d' is the
better approach since the first line will be the 'From ' in question.
For true assuredness, 

awk '	$1 == "From" && NR == 1 { next }
	{ print }'

remembering, of course, to escape the $ and " characters inside the awk
program for use in the aliases file.

As an aside, I believe it's the rmail/smail/sendmail program with the task
of appending a /usr/mail/$user file which inserts a > in front of '^From '
when it appears other than as line 1 of the header.  That's certainly the
case with smail, configured in the directors file by setting 'unix_from_hack'.
Were it the sending-mail-engine's responsibility, it would wreck data mailed
into programs, where the inserted character would alter the inbound data
stream.  (That last is, I admit, conjecture.)

.Kris
-- 
Kristopher Stephens, | (408-746-6047) | krs@uts.amdahl.com | KC6DFS
Amdahl Corporation   |                |                    |
     [The opinions expressed above are mine, solely, and do not    ]
     [necessarily reflect the opinions or policies of Amdahl Corp. ]
Technical Details
Message-ID: <52bN02bWfas401@amdahl.uts.amdahl.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!amdahl!krs
References: <MEYER.90Dec17124939@cambium.uoregon.edu> <1990Dec19.230106.13613@spectrum.CMC.COM>

Show Full Headers
Complete Article Headers
Message-ID: <52bN02bWfas401@amdahl.uts.amdahl.com>
Subject: Re: mailing lists -> newsgroups
Date: Thu, 20 Dec 1990 06:20:50 +0000
From: krs@uts.amdahl.com (Kris Stephens [Hail Eris!])
References: <MEYER.90Dec17124939@cambium.uoregon.edu> <1990Dec19.230106.13613@spectrum.CMC.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!amdahl!krs
Newsgroups: news.sysadmin,news.misc,news.software.nntp
Reply-To: krs@amdahl.uts.amdahl.com (Kris Stephens [Hail Eris!])
Distribution: news
Organization: Amdahl Corporation, Sunnyvale CA
Lines: 31