🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #258

Re: hey, what do you know: vichan supports nntp

#258
From: anon
Date: Fri, 15 May 2020 23:42
24 lines
1643 bytes
fputs($s,"AUTHINFO USER $server_auth_user
");
      $weg=line_read($s);
      fputs($s,"AUTHINFO PASS $server_auth_pass
");
      $weg=line_read($s);
      if (substr($weg,0,3) != "281" {
        AUTH FAILED
        can't do stuff...
      } else {
        IT DIDN"T FAIL, YAY!
        do stuff...
      }

And I guess the "do stuff" would be some variant of message_post and message_post_with_attachment from /lib/post.inc.php. not sure it is better to just put that code into the vichan function, or to call some function in the rslight framework. i guess the latter, this way we can do minimal changes on the vichan code. 
actually, the way this is done in vi might be superior, because the whole message is already composed and then sent in one go (instead of composing and sending the individual pieces).
now it gets a bit tricky, i have to read up a bit on nntp before i can continue.

cheers

trw

Posted on def4
Technical Details
Message-ID: <e1cece3cd885d6d6e2fae84d9cf1d639@def4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
References: <4d8c8c1eecefe59c0b27e5a09370a4b1@def4>

Show Full Headers
Complete Article Headers
Message-ID: <e1cece3cd885d6d6e2fae84d9cf1d639@def4>
Subject: Re: hey, what do you know: vichan supports nntp
Date: Fri, 15 May 2020 23:42:38 +0000
From: anon <anon@anon.com>
References: <4d8c8c1eecefe59c0b27e5a09370a4b1@def4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
Newsgroups: rocksolid.nodes
Organization: def5
In-Reply-To: <4d8c8c1eecefe59c0b27e5a09370a4b1@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit