Rocksolid Light

Welcome to novaBBS

register   nodelist   faq  

Latest changes: 'View all headers' link for messages. 'Latest' poster and link available for each thread.


rocksolid / Programming / Re: posting to new server

SubjectAuthor
* posting to new serverAnonymous
`- Re: posting to new serverRetro Guy

1
Subject: posting to new server
From: pos...@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Organization: i2pn2 (i2pn.org)
Date: Mon, 8 Jun 2020 02:41 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: pos...@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: posting to new server
Date: Sun, 07 Jun 2020 19:41:36 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.234.y6zym@anon.com>
References: <code.100.gmepn@anon.com>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="18226"; mail-complaints-to="usenet@i2pn2.org"
View all headers
for some reason the almost identical code sequence that works for send.php in rslight for posting messages to a news server (using the post command),
produces a 480 - posting not allowed when i try to use it for vichan (with the same server). guess i do something for the auth.
this is clearly not RESTful :-)

--
Posted on def2


Subject: Re: posting to new server
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Mon, 8 Jun 2020 09:09 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro ...@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: posting to new server
Date: Mon, 8 Jun 2020 09:09 UTC
Organization: Rocksolid Light
Message-ID: <4d48acb74a6d58689e0b61dd5adaeac9$1@www.novabbs.com>
References: <code.100.gmepn@anon.com> <code.234.y6zym@anon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="30237"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$PXCMmtHBsSvRw0Y0vZandOOBZpl30bNzUr2hwcdxlCeTPwpGEH.Pe
View all headers
Anonymous wrote:

for some reason the almost identical code sequence that works for send.php in rslight for posting messages to a news server (using the post command), produces a 480 - posting not allowed when i try to use it for vichan (with the same server). guess i do something for the auth.

Are you setting $remote_auth_user and $remote_auth_pass in the file? In rslight these are pulled from config. If that's ok, when exactly do you see the error? After AUTHINFO commands? After POST command?

The function nntp2_open in send.php uses language variables to display some errors. If you're not linked to rslight, you probably won't see the errors from it. You can just change those lines to display the text you want for the error.

BTW, the function nntp2_open in send.php and the modified vichan_nntp.php are identical functions. If you link the two files (include one in the other), you'll need to drop the function from the secondary function.

send.php does not include some functions it uses that are in newsportal.php. If you are running it not including that file, it probably won't work. The best way to handle it for now is to just copy the functions into the send.php you want to use. (vichan_send.php maybe?)

Retro Guy

--
Posted on: Rocksolid Light
www.novabbs.com


1
rocksolid light 0.6.6
clearnet i2p tor