作者holishing ( )
看板PttCurrent
标题[情报] PttBBS 旧有转信功能介绍
时间Sat Dec 16 03:32:12 2017
# 1. 程式码资讯相关
目前测试中相关原始码:
https://github.com/clamtestbbs/pttbbs-inndtest/
(fork form
https://github.com/ptt/pttbbs )
如何恢复功能:revert 相关程式修改, 及调整 conflict 的部分
pttbbs 拔转信前最後一次版本纪录
https://github.com/ptt/pttbbs/tree/cc5cf85
拔转信後相关的 commit log:
(防止转到有网页版本的站台上, 暂移除 Author 那栏@@
将 commit 栏位後变得版本号直接加到
https://github.com/ptt/pttbbs/commit/
後面,即可线上检视 GitHub 网页版本纪录
commit 524cced5b2afc20ef9af7570067887fc93a9cd23
Date: Fri Jun 17 19:12:08 2016 +0800
Delete obsolete innd in dailybackup.pl.
https://github.com/ptt/pttbbs/commit/524cce
> --------------------------------------------------
commit 93418d2464237b6cfc56ae3f293a1129d18b603f
Date: Fri Jun 17 18:30:54 2016 +0800
Remove obsolete innd which causes infinite loop.
https://github.com/ptt/pttbbs/commit/93418d
> --------------------------------------------------
commit 9e78c68152159e3324679f8fd92a1a5e2a05bc7f
Date: Thu Jul 16 18:26:07 2015 +0800
Remove innd description on board list header.
https://github.com/ptt/pttbbs/commit/9e78c6
> --------------------------------------------------
commit eb576132e737761848959e40e185dcd25c79c053
Date: Wed Jul 8 18:10:08 2015 +0800
Remove innd support in mbbsd.
Removed BRD_NOTRAN and BRD_LOCALSAVE. Also removed related code.
https://github.com/ptt/pttbbs/commit/eb5761
> --------------------------------------------------
commit 6ad941c731961c475192adc30795b512e5e14ad3
Date: Tue Nov 4 15:22:29 2014 +0800
Misc update due to source repository changes (moved to github).
Also removed innbbsd references.
https://github.com/ptt/pttbbs/commit/6ad941
> --------------------------------------------------
commit ed71cbf390ea9b314e9506ba647c0104ef77a465
Date: Mon Nov 3 18:54:49 2014 +0800
Remove innbbsd.
Alice: What is innbbsd?
Bob: Something when BBS servers were acted as Newsgroup
readers.
Eve: Then why do we keep it?
No one is interested in maintaining innbbsd, especially
Group.NCTU.edu.tw is now dead.
https://github.com/ptt/pttbbs/commit/ed71cb
> --------------------------------------------------
# 2. 转信程式大致包含哪些
source code 的 innbbsd/ 大致包含
antisplam.h clibrary.h daemon.c echobbslib.c innbbsconf.h
inntobbs.c nocem.c rfc931.c
bbslib.c closeonexec.c daemon.h externs.h innbbsd.c
inntobbs.h nocem.h
bbslib.h connectsock.c dbz.c file.c innbbsd.h
Makefile pmain.c
bbslink.c COPYRIGHT.nocem dbz.h his.c inncheck.pl
mkhistory.c port.c
bbsnnrp.c ctlinnbbsd.c dbztool.c his.h inndchannel.c nntp.h
receive_article.c
可以参考
https://github.com/clamtestbbs/pttbbs-inndtest/tree/r2.inndtest/innbbsd
利用 pmake/bmake 来编译/install後会安装到 (BBS家目录)/innd/ 这个地方
===================
另外在 sample 底下也有 innd/ 这个范例目录,主要包含了:
bbsname.bbs Makefile ncmperm.bbs newsfeeds.bbs nodelist.bbs ntu.active
其中此部分跟 Maple-itoc 用的转信程式明显的差异在於
1. 这边设定的档案皆是直接来工作站用vi/vim/nano等编辑器直接设定
但 Maple-itoc 则是去 (0)Admin 之类的地方设定
(工作站下编辑器反而无法直接编辑 or 要在其他特殊模式下编辑? [待确认])
2. PttBBS 停止维护转信功能前用的转信程式
底下有 [站台名称].active 的相关档案来设定 high-number 等等东西
也就是可以对照连到 news server 後输入 list 指令会看到的东西:
$ telnet news.tnfsh.tn.edu.tw
Trying 210.70.137.5...
Connected to news.tfcis.org.
Escape character is '^]'.
200 news.tnfsh.tn.edu.tw InterNetNews NNRP server INN 2.4.6 ready (posting
ok).
list_
215 Newsgroups in form "group high low flags".
...(略)
TFCIS.alumni.Tainan.NCTU 0000002279 0000000779 y
TFCIS.chat 0000000202 0000000153 y
TFCIS.club.TFCIS 0000000721 0000000384 y
TFCIS.comp.ACM 0000000038 0000000039 y
TFCIS.comp.OS 0000000426 0000000427 y
TFCIS.comp.Programming 0000000068 0000000069 y
TFCIS.comp.lang.CnCPP 0000000123 0000000124 y
...(略)
TFCIS.personal.itoc 0000005139 0000004068 y
> -------------------------
因此
ntu.active 范例里面的资料内容就直接显示
tw.bbs.chat 0000000000 0000000000 y
来对应 newsfeeds.bbs 范例里的
# newsgroups board news server
#------------------------------------- -------------- -----------
#
tw.bbs.test test
ntu
再对应 nodelist.bbs 范例里的
# name hostname & domainname full name
#------- ---------------------------------- ------------
#ptt2 ptt2.csie.ntu.edu.tw IHAVE(7777) Ptt2
#
ntu news.ntu.edu.tw POST(119) NTU News Server
至於 ptt2 那行的意义,经过初步测试是推测要先设定这行
转信程式才知道自己的 server 的资讯是什麽@@ (待确认)
其他设定详细资讯还留到之後介绍@@
但大致而言的确还是觉得
Maple-itoc 的转信介面比较友善 XD
# 3. (接收)转信程式是怎麽来的?
看了一下才发现不论 Maple-itoc 还是 PttBBS 先前用的
都有 patch 其他作者写的相关接收程式後, 放进来用的痕迹@@ (待确认
像是 NoCeM 挡信机制就有相关的版权页..等
但都因为版本纪录显示很早期(2000年左右或更早)这方面的东西就在交流,
传来传去就更有不知原本那些 code 从那个神秘地方来的 fu....
真要维护起来似乎也愈来愈难....
===
先记到这边,之後ok的话应该会补充@@
--
※ 发信站: 批踢踢实业坊(ptt.cc)
※ 转录者: holishing (140.116.101.37), 12/16/2017 03:32:12
1F:推 hijkxyzuw: r2 安安,原来可以从信箱转发文喔 12/24 00:47
hi
※ 编辑: holishing (140.116.101.37), 04/20/2018 01:52:00