🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Yamn Client Suggestions

#304317
From: inwtx
Date: Sat, 04 May 2019 22:08
45 lines
2569 bytes
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On Sat, 4 May 2019 16:16:48 -0500, inwtx wrote in
> Message-Id: <qakvg2$ra3$1@news.mixmin.net>:
> 
> 
>>   Thanks.  I have tried something that seems to be getting around the
>> problem, at least in my first return test.  What I am doing is building
>> the chain from the message file as before, but before I send the packet
>> through yamn, I am deleting the Chain: line from the message.  The Chain:
>> is now not showing up in the news group test message.  I will mention
>> again, that when I send a message with the command line, the Chain: will
>> show up.
> 
> Looking at the yamn code, the chain input is read in this segment of
> code in client.go:-
> 
> // Read the chain from flag or config
> var in_chain string
> if flag_chain == "" {
> in_chain = strings.Split(cfg.Stats.Chain, ",")
> } else {
> in_chain = strings.Split(flag_chain, ",")
> }
> if len(in_chain) == 0 {
> err = errors.New("Empty input chain")
> return
> }
> 
> The first conditional checks if a --chain option has been
> passed on the command line.  It is has, it uses it.  If it hasn't, it
> takes the value from the config file (with a default of "*,*,*").  The
> next conditional tests that the chain length (from either method) is
> greater than zero.  There doesn't appear to be any functionality to
> handle a Chain header within the payload text file.  If a Chain header
> is put in there, it will be delivered with the payload, like any other
> header.  Is this the behaviour you're seeing?

  Yes, that explains it.  I make the client where the chain can be passed
in the message, so that is what is causing it.  My latest mod to parse
the chain as usual and then removing the chain line from the message bafore
sending cured the chain line from ending up a header.  The way things
are now should be sufficient.
Technical Details
Message-ID: <qal2h2$1cm$1@news.mixmin.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
References: <slrnqcs2rp.u39.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <qal2h2$1cm$1@news.mixmin.net>
Subject: Re: Yamn Client Suggestions
Date: Sat, 4 May 2019 17:08:32 -0500
From: "inwtx" <noreply@inwtx.net>
References: <slrnqcs2rp.u39.admin@fleegle.mixmin.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: Mixmin
Injection-Date: Sat, 4 May 2019 22:08:35 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="86fc1badeebc9464c507095cb2bfc9f40098903d";
Lines: 45