🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90138

Re: how to post a text message to nntp server

#90138
From: 彭江涛
Date: Sat, 25 Feb 2023 01:35
50 lines
2835 bytes
在 2023/2/24 21:44, Urs Janßen 写道:
> spender wrote:
>> How to post a message to a newsgroup@myselfhost:563  with shell/bash
>> command line,
> 
> if perl is ok:
> 
> http://bzr.tin.org/tools/tinews.pl
> http://www.tin.org/bin/man.cgi?section=1&topic=tinews
> 
> e.g.
> 
> echo -e "\nbody goes here" |\
> tinews.pl --ssl -XYv -t "test" -n "local.test" -f "me@example.org"
Pass:
1: need create sl director under this script
2: modify line 70, set nntp-server with configure to my local network 
address
3: modify line 71,72, set nntp-user as authinfo
4: modify line 88, set verbose with 1
5: modify line 89, set debug with 1

here is output with me:
echo -e "\nbody"|tinews.pl --nntps -XYv -t "cli send test" -n 
"local.sms" -f "spender@spender.men"
==========================================================
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 281 Authentication succeeded
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> POST
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 340 Ok, recommended message-ID 
<ttboa0$8aq$1@news.spender.men>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Subject: cli send test
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Newsgroups: local.sms
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Injection-Date: Sat, 25 Feb 2023 
09:29:35 +0800
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Date: Sat, 25 Feb 2023 09:29:35 +0800
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> From: spender@spender.men
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> Message-ID: 
<ttbo9v$8ao$1@news.spender.men>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> body
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> --
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> === powered by root@news.spender.men ===
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> .
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 240 Article received 
<ttbo9v$8ao$1@news.spender.men>
Net::NNTP::_SSL=GLOB(0x1418dd0)>>> QUIT
Net::NNTP::_SSL=GLOB(0x1418dd0)<<< 205 Bye!


3ku . on the way! now Need read how to configure it.
Technical Details
Message-ID: <ttbolc$2bpo2$2@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <tta1uo$26aol$2@dont-email.me> <ttaevu$27i$1@nntp.de>

Show Full Headers
Complete Article Headers
Message-ID: <ttbolc$2bpo2$2@dont-email.me>
Subject: Re: how to post a text message to nntp server
Date: Sat, 25 Feb 2023 09:35:39 +0800
From: 彭江涛 <spender@yeah.net>
References: <tta1uo$26aol$2@dont-email.me> <ttaevu$27i$1@nntp.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient Spider
Lines: 50
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Feb 2023 01:35:41 -0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0
Cancel-Lock: sha1:LW//1ZFnc3dsvfy9/31HurSM2Eo=
In-Reply-To: <ttaevu$27i$1@nntp.de>