🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #304792

Re: yamn not accepting parameter

#304792
From: Stefan Claas
Date: Wed, 15 May 2019 20:52
53 lines
2664 bytes
Am Wed, 15 May 2019 20:45:09 -0000 (UTC)
schrieb Zax <admin@mixmin.net>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On Wed, 15 May 2019 21:55:34 +0200, Stefan Claas wrote in
> Message-Id: <qbhqrn$71t$12@dont-email.me>:
> 
> > Am Wed, 15 May 2019 21:46:05 +0200
> > schrieb Stefan Claas <sac@300baud.de>:
> >  
> >> Yes, I know what you mean and I think my
> >> answer was clear enough.  
> >
> > To make it more clear, the word or string "pool"
> > is so to speak hardcoded:
> >
> > if you look at the config.go file at line 173 it says:
> >
> > cfg.Files.Pooldir = path.Join(flag_basedir, "pool")
> >
> > which tells me that YAMN is looking for a folder
> > named "pool" regardless of it's location.  
> 
> I don't think that's actually right.  The line you've posted defines
> the default value of cfg.Files.Pooldir.  By default it takes the
> flag_basedir value and appends "/pool" on the end of it.  If someone
> chooses to override the default with, for example:
> 
> [Files]
> Pooldir = /var/spool/ponies
> 
> If should use /var/spool/ponies as the Pooldir.

Oh, appologies if I said something wrong to the OP!

Like I said I am no programmer, but wonder then why
it did not work for the OP.

> The flag_basedir doesn't have a strict default but Yamn tries to
> determine a reasonable setting.  It applies the following sequence:
> 1) Use the dir passed in the --basedir flag
> 2) If defined, use the Environment Variable YAMNDIR
> 3) If there's a yamn.cfg in the PWD, set that as the basedir.
> 4) If there's a subdir called yamn under the HOMEDIR, use that as
> basedir 5) If there's a yamn.cfg in /etc/yamn, use /etc/yamn as
> basedir

Thanks for the info, much appreciated!

Regards
Stefan
Technical Details
Message-ID: <qbhu77$m3v$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <qbhq59$vnu$1@neodome.net>

Show Full Headers
Complete Article Headers
Message-ID: <qbhu77$m3v$1@dont-email.me>
Subject: Re: yamn not accepting parameter
Date: Wed, 15 May 2019 22:52:55 +0200
From: Stefan Claas <sac@300baud.de>
References: <qbhq59$vnu$1@neodome.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: A noiseless patient Spider
Lines: 54
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 15 May 2019 20:52:55 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7a98bbe3cd347c637275eb68400259b5";
Cancel-Lock: sha1:vGu5yqWoSceP2qG390DNgWBST3M=
X-Newsreader: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)