🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
14 messages
14 total messages Started by les Wed, 15 May 2019 11:51
yamn not accepting parameter
#304767
Author: les
Date: Wed, 15 May 2019 11:51
3 lines
667 bytes
yamn is not accepting [File] Pooldir=poolb

goes to pool only
Re: yamn not accepting parameter
#304781
Author: Stefan Claas
Date: Wed, 15 May 2019 19:23
24 lines
1262 bytes
Am Wed, 15 May 2019 06:51:52 -0500
schrieb "les" <lester@fastwebnet.it>:

> yamn is not accepting [File] Pooldir=poolb
> 
> goes to pool only
> 

Hi,

sorry for my late reply!

I just did a test under Linux and it works like
expected.

Here are my test yamn.cfg settings:

[Files]

Pooldir = /home/sac/Schreibtisch/pool/

Regards
Stefan
Re: yamn not accepting parameter
#304789
Author: les
Date: Wed, 15 May 2019 19:33
28 lines
1168 bytes
> 
> Am Wed, 15 May 2019 06:51:52 -0500
> schrieb "les" <lester@fastwebnet.it>:
> 
> 
>> yamn is not accepting File Pooldir=poolb
>>
>> goes to pool only
>>
> 
> Hi,
> 
> sorry for my late reply!
> 
> I just did a test under Linux and it works like
> expected.
> 
> Here are my test yamn.cfg settings:
> 
> Files
> 
> Pooldir = /home/sac/Schreibtisch/pool/

  pool is the default directory.  Make a poolx directory and see if 
the message ends up in there.

[Files]
Pooldir = /home/sac/Schreibtisch/poolx/
Re: yamn not accepting parameter
#304782
Author: Stefan Claas
Date: Wed, 15 May 2019 19:40
39 lines
1722 bytes
Am Wed, 15 May 2019 14:33:58 -0500
schrieb "les" <lester@fastwebnet.it>:

> > 
> > Am Wed, 15 May 2019 06:51:52 -0500
> > schrieb "les" <lester@fastwebnet.it>:
> > 
> >   
> >> yamn is not accepting File Pooldir=poolb
> >>
> >> goes to pool only
> >>  
> > 
> > Hi,
> > 
> > sorry for my late reply!
> > 
> > I just did a test under Linux and it works like
> > expected.
> > 
> > Here are my test yamn.cfg settings:
> > 
> > Files
> > 
> > Pooldir = /home/sac/Schreibtisch/pool/  
> 
>   pool is the default directory.  Make a poolx directory and see if 
> the message ends up in there.

That's because the word "pool" is coded that way in
the source code, which makes perfect sense to me.

If you want to change that behaviour you will need
to edit the source code to your liking and then
compile again.

Regards
Stefan 
Re: yamn not accepting parameter
#304784
Author: les
Date: Wed, 15 May 2019 19:43
42 lines
1549 bytes
> 
> Am Wed, 15 May 2019 14:33:58 -0500
> schrieb "les" <lester@fastwebnet.it>:
> 
> 
>>>
>>> Am Wed, 15 May 2019 06:51:52 -0500
>>> schrieb "les" <lester@fastwebnet.it>:
>>>
>>>
>>>> yamn is not accepting File Pooldir=poolb
>>>>
>>>> goes to pool only
>>>>
>>>
>>> Hi,
>>>
>>> sorry for my late reply!
>>>
>>> I just did a test under Linux and it works like
>>> expected.
>>>
>>> Here are my test yamn.cfg settings:
>>>
>>> Files
>>>
>>> Pooldir = /home/sac/Schreibtisch/pool/
>>
>>   pool is the default directory.  Make a poolx directory and see 
if
>> the message ends up in there.
> 
> That's because the word "pool" is coded that way in
> the source code, which makes perfect sense to me.
> 
> If you want to change that behaviour you will need
> to edit the source code to your liking and then
> compile again.

  this is what I mean

Pooldir = /home/sac/Schreibtisch/poolx/
Re: yamn not accepting parameter
#304785
Author: Stefan Claas
Date: Wed, 15 May 2019 19:46
52 lines
2090 bytes
Am Wed, 15 May 2019 14:43:36 -0500
schrieb "les" <lester@fastwebnet.it>:

> > 
> > Am Wed, 15 May 2019 14:33:58 -0500
> > schrieb "les" <lester@fastwebnet.it>:
> > 
> >   
> >>>
> >>> Am Wed, 15 May 2019 06:51:52 -0500
> >>> schrieb "les" <lester@fastwebnet.it>:
> >>>
> >>>  
> >>>> yamn is not accepting File Pooldir=poolb
> >>>>
> >>>> goes to pool only
> >>>>  
> >>>
> >>> Hi,
> >>>
> >>> sorry for my late reply!
> >>>
> >>> I just did a test under Linux and it works like
> >>> expected.
> >>>
> >>> Here are my test yamn.cfg settings:
> >>>
> >>> Files
> >>>
> >>> Pooldir = /home/sac/Schreibtisch/pool/  
> >>
> >>   pool is the default directory.  Make a poolx directory and see   
> if
> >> the message ends up in there.  
> > 
> > That's because the word "pool" is coded that way in
> > the source code, which makes perfect sense to me.
> > 
> > If you want to change that behaviour you will need
> > to edit the source code to your liking and then
> > compile again.  
> 
>   this is what I mean
> 
> Pooldir = /home/sac/Schreibtisch/poolx/

Yes, I know what you mean and I think my
answer was clear enough.

Regards
Stefan
Re: yamn not accepting parameter
#304786
Author: Stefan Claas
Date: Wed, 15 May 2019 19:55
22 lines
1377 bytes
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.

Hope this helps!

Regards
Stefan

Re: yamn not accepting parameter
#304787
Author: inwtx
Date: Wed, 15 May 2019 20:13
33 lines
1796 bytes
> 
> 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.
> 
> Hope this helps!

  I don't know golang, but I am assuming that he thinks that "pool" 
in that line is a default.  And again assumes that when he use the 
line: Pooldir = /home/sac/Schreibtisch/poolx/ that he thinks the 
outfile would be put in folder poolx.  Actually what 'Pooldir =' 
does is point to the location of the 'pool' folder that has been 
placed in another path other that the same path as the executable.  
The 'pool' folder name cannot be changed.  This is just an 
understandable misinterpretation on his part.  In my software career 
I have been just as vexed when it came to some instructions.



Re: yamn not accepting parameter
#304790
Author: Stefan Claas
Date: Wed, 15 May 2019 20:23
20 lines
1730 bytes
Am Wed, 15 May 2019 15:13:13 -0500
schrieb "inwtx" <noreply@inwtx.net>:

>   I don't know golang, but I am assuming that he thinks that "pool" 
> in that line is a default.  And again assumes that when he use the 
> line: Pooldir = /home/sac/Schreibtisch/poolx/ that he thinks the 
> outfile would be put in folder poolx.  Actually what 'Pooldir =' 
> does is point to the location of the 'pool' folder that has been 
> placed in another path other that the same path as the executable.  
> The 'pool' folder name cannot be changed.  This is just an 
> understandable misinterpretation on his part.  In my software career 
> I have been just as vexed when it came to some instructions.

Well, I am no programmer but I like to look at source code.

And appologies to the OP if my answer was not clear enough
in the first place!

Regards
Stefan
Re: yamn not accepting parameter
#304796
Author: inwtx
Date: Wed, 15 May 2019 20:33
2 lines
765 bytes
  Unfortunately les, when it comes to programming, you can't think 
out of the box.  You have to stay in the box.
Re: yamn not accepting parameter
#304791
Author: Zax
Date: Wed, 15 May 2019 20:45
61 lines
3176 bytes
-----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.

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

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEJHudPu4ysYQcZBcigyyPTc2QQmMFAlzcelQACgkQgyyPTc2Q
QmOqRA//fIACSWqtcMr/aalQiIbz8FNVm1fw/9fBNSEqJeljLteEYKDfVh8/ARpx
VDXeT3l3x5ZjJoHj+EhysKijVeFzkE384gQG4GlY5LhTBfzOvPnsAs0fWYw8w5Xg
z6Wx7ibS6mBu5Gb+3EsjoCFrx6syRZSdREOgtcrq8JaTHSzgCGgjzeYEVz9aKBuF
drgMgn5epd93J2xbF9ECbd5KOjeF0AquewIr9TRz91Kmd8Op88cTgJF5iWg72tCB
iyUHrcPRblPzk3x4j6RklDlo9NnOEnGKa26eUV6sbOnlQ6cWZJoHNekp4U/bq92G
a9yGwepfck2mXA3QMY44RFZ3pRw9foOkci9+ei0lmqK+wAn1YRAztSCnMx4WmUDJ
oTVHDcxat1FukiQxKVWHSu3qkTf/j49Tv1hSV3gE4O2VKNQ3AeMDpRE9+I0fOwIP
M2EP3fZM1dqqzvBiFtTjeySCOGemcd4Wi6Tu7uLuL6UchGvhAsviVLMkrDb5/EXG
JOLf6RAv4D+DBaRs9j3aT/BaEnyyOy80BRI6Nrvr6kg29M5E/b0wvtpdpdDgYzod
bc43hTYrFrD4bgm6Dmy0VQfaGlcCIFJD9j1IApatFskulPSv0BQR8peViaSy5HVt
xRKlMyNfWgvyfcM2sTkJuF62Yr0vQneqnDi3SUqznKnqNvZFW7Y=
=Sx9u
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
ssb  rsa4096/832C8F4DCD904263 created: 2019-05-04 expires: 2024-05-02 usage: S
Re: yamn not accepting parameter
#304792
Author: 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
Re: yamn not accepting parameter
#304793
Author: inwtx
Date: Wed, 15 May 2019 20:57
48 lines
2275 bytes
> 
> -----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.
> 
> 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

  I was following Stefan logic, so that is even better.  I'll try it 
with YAMNclient sometime and see how it wlrks.
Re: yamn not accepting parameter
#304799
Author: inwtx
Date: Wed, 15 May 2019 22:34
4 lines
743 bytes
[File]
Pooldir=poolt

  YAMNclient put the packet in poolt folder.  It worked.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads