🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6660

Global initialization for "mail" variable possible?

#6660
From: John Ladwig
Date: Wed, 02 Nov 1994 00:31
26 lines
1706 bytes
I've had a number of people ask me how to set up mail notification in
NN.  I can point them all to creating a .nn/init file, and adding the
appropriate variable, or provide a template init file which tells them
what to edit.

The thing is, the "mail" variable is per-user specific, but extremely
predictable.  In fact, the variant part is already in the NN program's
environment.

Is there any way to read environment variables into string variables
within an initialization file?

I'd love to set up the global $LIB/init file with:

    mail   /usr/spool/mail/$USER

but it seems a lost cause.

Short of a source dive, is there any way to get what I'm looking for?

    -jml
--
UMN Dept. of Soil Science; St. Paul, MN, USA | Internet: jladwig@soils.umn.edu
http://www.soils.umn.edu/~jladwig/           |           MIME/PGP accepted
  I saw the worst bands of my generation/    |           Finger for geek code
   applied by magic marker to drywall  -TMBG |            and PGP public key
Technical Details
Message-ID: <jladwig.783736316@saturn>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!umn.edu!jladwig

Show Full Headers
Complete Article Headers
Message-ID: <jladwig.783736316@saturn>
Subject: Global initialization for "mail" variable possible?
Date: Wed, 2 Nov 1994 00:31:56 GMT
From: jladwig@soils.umn.edu (John Ladwig)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!umn.edu!jladwig
Newsgroups: news.software.nn
Sender: news@news.cis.umn.edu (Usenet News Administration)
Nntp-Posting-Host: saturn.soils.umn.edu
Reply-To: jladwig@soils.umn.edu
Organization: UMN Soils GIS Lab
Lines: 26