🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6440

Re: nnpost problem

#6440
From: Dave Wolfe
Date: Fri, 23 Sep 1994 17:44
37 lines
2292 bytes
In <35se3b$t72@vixen.cso.uiuc.edu> zz13352@cesn12.cen.uiuc.edu (Zheng Zhang) writes:

>Have anyone encounter the problem of:

>nnpost: nn has not been invoked to initialize user files

>What I am trying to do is to filter out certain mail with ELM's
>filter function and call nnpost to cross post it to a related
>newsgroup. It never did it. The filter file of elm looks like:

>if (from contains "donkey") then ececute "cat - > /tmp/post; /myhome/topost"

>the topost script simply call:

>/usr/local/bin/nnpost -s "auto-post-test" -k "test" -d world -f /tmp/post -p uic.test >&! /tmp/post_result

>and the error message showed up in the post_result.

Since I don't use filter, I'm not completely sure of all the nuances,
but I do know that it doesn't run your script with a full environment
(as evidenced by the need to use full pathnames). You're getting this
message from nnpost when the call to init_global() returns -1, which it
does when it can't find the $HOME/.nn directory. Since it doesn't
complain that $HOME (the environment variable) doesn't exist, that must
be set, but the question is, "To what?". Try dumping the environment in
your script to see what's going on.

Another possibility is that the script isn't run under your uid and no
one else has permissions on your .nn directory.

I cross-posted this to comp.mail.elm, so maybe someone more versed in
filter can give you a more definitive analysis.

-- 
 Dave Wolfe   | 6501 William Cannon Dr. W. | (512) 891-3246
 Motorola SPS | Austin, TX  78735-8598     | dwolfe@pets.sps.mot.com
Technical Details
Message-ID: <root.780342289@gruntwork>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!swrinde!cs.utexas.edu!uunet!conch!gruntwork.sps.mot.com!gruntwork!root
References: <35se3b$t72@vixen.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <root.780342289@gruntwork>
Subject: Re: nnpost problem
Date: Fri, 23 Sep 1994 17:44:49 +0000
From: dwolfe@miaow.sps.mot.com (Dave Wolfe)
References: <35se3b$t72@vixen.cso.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!swrinde!cs.utexas.edu!uunet!conch!gruntwork.sps.mot.com!gruntwork!root
Newsgroups: news.software.nn,comp.mail.elm
Organization: Motorola RISC Software, Austin, TX
Lines: 36
NNTP-Posting-Host: miaow.sps.mot.com