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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
|
From ceplm@seznam.cz Fri Sep 1 13:51:25 2006
Message-Id: <pslks3xh02.ln2@chelcicky.vysocina>
From: Matej Cepl <ceplm@seznam.cz>
Subject: pygn as a mail2news gateway
Newsgroups: gmane.network.leafnode
Date: Thu, 31 Aug 2006 23:26:49 -0400
User-Agent: KNode/0.10.2
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="nextPart1312693.60ImoN5RI4"
Content-Transfer-Encoding: 7Bit
Status: RO
Content-Length: 7709
Lines: 247
--nextPart1312693.60ImoN5RI4
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8Bit
Hi,
so now the real problem I am dealing with -- mail2news bidirectional
gateway.
On leafnode 1.* I used mail2news patch by Nikita Youschenko
(http://zigzag.lvk.cs.msu.su/leafnode/ -- I wonder something like that has
not been included in leafnode 2.*, it would make great fit IMHO, but I know
I am not a programmer, and I won't do it, so I shut up on this), so I have
to install some mail2news gateway. I tried pygn (just because it is
packaged for Debian; any other suggestions?), but I haven't managed to
configured it yet. This is what I did (with expected workflow):
1) mail is read by my kmail (user matej) and if it is list message which
should be gatewayed to news, it is bounced to news@localhost -- this step
has been working perfectly for couple of years and it has not been changed.
2) news' .procmailrc contains a lot of rules like this (for news2mail):
ARG = $1
:0 bh:
* ARG ?? local-mail-comp-boston
| pygn2m -l $HOME/log-pygn2m -d -t discuss@blu.org -s ceplm@seznam.cz
and like this (for mail2news):
:0 bh:
* ^List-Id:.*pkg-lyx-devel.lists.alioth.debian.org
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.lyx-debian
/etc/news/local.groups is this:
local.mail.comp.cambridge m Cambridge (UK) LUG
local.mail.comp.boston m Boston LUG
local.mail.comp.surrey m Surrey LUG
local.mail.comp.bosto-admin m Boston admins
local.mail.comp.oxford m Oxford LUG
local.mail.comp.lyx-debian m Maintainer of LyX on Debian
local.mail.comp.scottish m Scottish LUG
local.mail.comp.northwales m NWales LUG
local.mail.comp.southwales m SWales LUG
local.mail.comp.czdebian m Diskuse českých uživatel Debianu
local.mail.vcfc.random m Random list z VCFC
local.mail.vcfc.branik m Diskuse ČCE Braník
local.mail.soc.oakeshott m Conversation -- discussion about Oakeshott
local.mail.soc.read-only m různá RO sociologie
local.mail.zpravy m NG pro různé zpravodajství
local.test m testing group
and this is /etc/news/moderators (w/o comments):
## Public hierarchies with exceptions.
fido7.*:%s@fido7.ru
ffm.*:%s@moderators.arcornews.de
fj.*:%s@moderators.fj-news.org
medlux.*:%s@news.medlux.ru
nl.*:%s@nl.net
relcom.*:%s@moderators.relcom.ru
ukr.*:%s@sita.kiev.ua
# local groups are moderated by news@localhost
local.*:news+%s@localhost
# and all gmane stuff should be posted directly
# gmane does its own thing on it
gmane.*:
## Direct all other public hierarchies to the master moderator database.
*:%s@moderators.isc.org
Even though (according to ~news/log-procmail) all messages seem to be
running correctly, I don't get a message with moderated newsgroups.
However, without moderating newsgroups, I don't know how to make work
sending emails from leafnode to email.
Any thoughts or help, please?
Best,
Matěj
--
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
http://www.ceplovi.cz/matej/blog/, Jabber: ceplma@jabber.cz
23 Marion St. #3, (617) 876-1259, ICQ 132822213
Home is where ~/.bashrc is.
-- from Usenet
--nextPart1312693.60ImoN5RI4
Content-Type: text/plain; name=".procmailrc"
Content-Transfer-Encoding: 8Bit
Content-Disposition: attachment; filename=".procmailrc"
PATH=/bin:/usr/bin:/usr/bin
LOGFILE=$HOME/log-procmail
VERBOSE=yes
# Note: The $1 contains value only _IF_ procmail
# is invoked with option -m or -a (with an argument).
# Be sure procmail is invoked with that oprion either as from
# LDA or ~/.forward.
#
# $1 is pseudo variable and it can't be used in condition line,
# so we copy the value to ARG.
ARG = $1
#:0 fwh
#* ! ^List-Post:
#* ^Mailing-List:
#| sed -e '/^-\{6,\}\s*Yahoo\!\s*Groups\s*Sponsor/,$d' yahoo-groups-message.txt \
#| sed -e :a -e '/^\n*$/{$d;N;};/\n$/ba'
:0 bh:
* ARG ?? local-mail-comp-boston
| pygn2m -l $HOME/log-pygn2m -d -t discuss@blu.org -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-lyx-debian
| pygn2m -l $HOME/log-pygn2m -d -t pkg-lyx-devel@lists.alioth.debian.org -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-boston
| pygn2m -l $HOME/log-pygn2m -d -t discuss@blu.org -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-bosto-admin
| pygn2m -l $HOME/log-pygn2m -d -t bblisa@bblisa.org -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-surrey
| pygn2m -l $HOME/log-pygn2m -d -t surrey@mailman.lug.org.uk -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-scottish
| pygn2m -l $HOME/log-pygn2m -d -t scottish@mailman.lug.org.uk -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-northwales
| pygn2m -l $HOME/log-pygn2m -d -t northwales@mailman.lug.org.uk -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-southwales
| pygn2m -l $HOME/log-pygn2m -d -t discuss@swlug.org -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-oxford
| pygn2m -l $HOME/log-pygn2m -d -t oxlug@lists.oxlug.org -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-cambridge
| pygn2m -l $HOME/log-pygn2m -d -t clug@cambridge-lug.org -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-comp-czdebian
| pygn2m -l $HOME/log-pygn2m -d -t czdebian-l@debian.cz -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-vcfc-random
| pygn2m -l $HOME/log-pygn2m -d -t vcfgb-random@yahoogroups.com -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-vcfc-branik
| pygn2m -l $HOME/log-pygn2m -d -t cebranik@pandora.cz -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-soc-goffman
| pygn2m -l $HOME/log-pygn2m -d -t goffman@mail.lsit.ucsb.edu -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-mail-soc-oakeshott
| pygn2m -l $HOME/log-pygn2m -d -t conversation@jiscmail.ac.uk -s ceplm@seznam.cz
:0 bh:
* ARG ?? local-test
| pygn2m -l $HOME/log-pygn2m -d -t matej@localhost -s ceplm@seznam.cz
:0 bh:
* ^Subject: *test
| pygm2n -l $HOME/log-pygm2n -d -n local.test
:0 bh:
* ^List-Id:.*pkg-lyx-devel.lists.alioth.debian.org
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.lyx-debian
:0 bh:
* ^List-Id:.*discuss.blu.org
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.boston
:0 bh:
* ^List-Id:.*bblisa.bblisa.org
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.bosto-admin
:0 bh:
* ^List-Id:.*surrey.mailman.lug.org.uk
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.surrey
:0 bh:
* ^List-Id:.*scottish.mailman.lug.org.uk
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.scottish
:0 bh:
* ^List-Id:.*northwales.mailman.lug.org.uk
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.northwales
:0 bh:
* ^List-Id:.*discuss.swlug.org
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.southwales
:0 bh:
* ^List-Id:.*oxlug.lists.oxlug.org
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.oxford
:0 bh:
* ^List-Id:.*clug.cambridge-lug.org
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.cambridge
:0 bh:
* ^List-Id:.*czdebian-l.debian.cz
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.czdebian
:0 bh:
* ^Mailing-List:.*(vcfgb|vcfc)-(announce|random)@yahoogroups.com
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.vcfc.random
:0 bh:
* ^List-Post:.*cebranik@pandora.cz
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.vcfc.branik
:0 bh:
* ^List-Post:.*goffman.mail.lsit.ucsb.edu
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.soc.goffman
:0 bh:
* ^To:.*CONVERSATION@JISCMAIL.AC.UK
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.soc.oakeshott
:0 bh:
* ^To:.*(@JISCMAIL.AC.UK|PILN@COLUMBIA.EDU|UMD-LPBR-FULL@LISTSERV.UMD.EDU)
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.soc.read-only
:0 bh:
* ^From:.*(googlealerts-noreply@google.com|alerts@yahoo-inc.com|robot@radio.cz)
| pygm2n -l $HOME/log-pygm2n -d -n local.mail.zpravy
--nextPart1312693.60ImoN5RI4--
|