在 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.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)