🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6679

Re: Global initialization for "mail" variable possible?

#6679
From: Kai Voigt
Date: Fri, 04 Nov 1994 07:09
29 lines
1737 bytes
In <jladwig.783736316@saturn> jladwig@soils.umn.edu (John Ladwig) writes:

>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

I have the following line in my global init file:

set mail /var/spool/mail/$USERNAME

Works fine...

Kai
--
Kai Voigt, Werftstrasse 2, 24148 Kiel, Germany, +49 431 7297514
"sendmail.cf looks like a context diff of two core files."
                  -- sjm@ra12.curtin.edu.au (Simon Mackinlay)
Technical Details
Message-ID: <39cmne$6tl@mistral.toppoint.de>
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!nntp.gmd.de!Germany.EU.net!pophh!nuki.NetUSE.de!Kiel.Germany.EU.net!tpki.toppoint.de!mistral.toppoint.de!depeche.toppoint.de!kai
References: <jladwig.783736316@saturn>

Show Full Headers
Complete Article Headers
Message-ID: <39cmne$6tl@mistral.toppoint.de>
Subject: Re: Global initialization for "mail" variable possible?
Date: Fri, 04 Nov 1994 07:09:34 +0000
From: kai@depeche.toppoint.de (Kai Voigt)
References: <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!nntp.gmd.de!Germany.EU.net!pophh!nuki.NetUSE.de!Kiel.Germany.EU.net!tpki.toppoint.de!mistral.toppoint.de!depeche.toppoint.de!kai
Newsgroups: news.software.nn
Organization: Organization? No, definitely not :-)
Lines: 29
NNTP-Posting-Host: depeche.toppoint.de
X-Newsreader: NN version 6.5.0 #1 (NOV)