-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
117 lines (78 loc) · 2.49 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
lornews is a NNTP gateway for reading and posting to linux.org.ru (LOR),
a Russian webforum about Unix-like operating systems and open-source
software.
lornews consist of 3 programs:
1) lord - small NNTP server, listens 5119 port by default
2) lorpull - utility that pulls news from LOR and stores them in the
local storage accessed by lord
3) lorpost - utility that reads a Usenet message from stdin and posts it
at LOR; used by lord for POST command
Installation
============
Possibly as root:
./install.sh
or
./install.sh $YOUR_BIN_DIR
As normal user:
./install_home.sh
Requirements
============
perl 5.8 or later
perl modules:
HTML::TokeParser
HTML::Entities
Email::Simple
Email::Simple::Creator
Email::Simple::FromHandle
Email::Address
Email::Date::Format
LWP::UserAgent
HTTP::Cookies
Date::Parse
File::Path
Encode
Fcntl
Switch
Documentation
=============
lord -h
lorpull -h
lorpost -h
Newsgroups are listed in ~/.lornews/groups.
Reading articles
================
Run lord in background:
lord &
or better
setsid lord
or whatever...
Instruct your favourite newsreader to talk to localhost (or where you
run lord), port 5119.
Run lorpull (e.g. periodically via cron) with proper options, e.g.:
lorpull # all last 10 days articles
lorpull lor.forum.talks -d 100 # last 100 days articles from Talks
lorpull '*slack*,*gentoo*' -d 1 -e -1 # last day Slackware and Gentoo
# related articles; do not expire
# old articles
Posting articles
================
Anonymous posting is not currently supported, so you need to have a LOR
account.
Create your user directory:
mkdir ~/.lornews/users/vasya
Write your password to the password file:
echo secret > ~/.lornews/users/vasya/passwd
chmod 600 ~/.lornews/users/vasya/passwd
Now you can post from your newsreader - topic-start articles as well as
comments.
Posted messages must have the following standard headers:
Newsgroups - exactly 1 newsgroup name from ~/.lornews/groups
From - name in this header is your nick
Subject - message title
Useful headers for topic-start articles:
Keywords - tags
X-Link-URL - URL for a news proof-link
X-Link-Text - description of a news proof-link
X-Image-Path - path to a local screenshot file
wbr,
Mitya