Mercurial > noffle
comparison docs/NOTES @ 108:8eb2975c8c1a noffle
[svn] 1.0pre6 merge
author | bears |
---|---|
date | Tue, 13 Jun 2000 07:44:21 +0100 |
parents | 651334f85995 |
children | 3c71e28c8eef |
comparison
equal
deleted
inserted
replaced
107:2869baa02f3c | 108:8eb2975c8c1a |
---|---|
13 1.8 Emacs Gnus | 13 1.8 Emacs Gnus |
14 1.9 pan | 14 1.9 pan |
15 1.10 trn | 15 1.10 trn |
16 1.11 xrn | 16 1.11 xrn |
17 1.12 knews | 17 1.12 knews |
18 | 18 1.13 knode |
19 2. Using Noffle as a Mail-News Gateway | |
20 | |
21 2.1 Create a local group | |
22 2.2 Create a mail2news script | |
23 2.3 Create an entry in .procmailrc | |
24 | 19 |
25 ------------------------------------------------------------------------------- | 20 ------------------------------------------------------------------------------- |
26 | 21 |
27 | 22 |
28 1.NOFFLE Compatibility Notes | 23 1.NOFFLE Compatibility Notes |
184 Some versions of Gnus freeze up when retrieving active groups. Since | 179 Some versions of Gnus freeze up when retrieving active groups. Since |
185 NOFFLE's log files in DEBUG mode show nothing unusual, I believe that | 180 NOFFLE's log files in DEBUG mode show nothing unusual, I believe that |
186 this is a bug in Gnus. Sometimes it helps to remove all ".newsrc" and | 181 this is a bug in Gnus. Sometimes it helps to remove all ".newsrc" and |
187 similar files on ones home directory and restarting Gnus. | 182 similar files on ones home directory and restarting Gnus. |
188 | 183 |
184 [ Alternatively, set option Gnus/Gnus Start/Gnus Init File from the ] | |
185 [ default ~/.newsrc to, say, ~/.gnus-newsrc. The hang I experienced ] | |
186 [ seems to be due to problems reading an existing .newsrc, nothing ] | |
187 [ to do with NOFFLE at all. ] | |
188 | |
189 Here is a proposal for changing some key-bindings. | 189 Here is a proposal for changing some key-bindings. |
190 | 190 |
191 ;; Customising Gnus for use with the NOFFLE news server | 191 ;; Customising Gnus for use with the NOFFLE news server |
192 ;; | 192 ;; |
193 ;; tick and open article | 193 ;; tick and open article |
260 reading the subscription trigger message - try the 'All threads' button. | 260 reading the subscription trigger message - try the 'All threads' button. |
261 Apart from that, it does not seem to cache article content other than the | 261 Apart from that, it does not seem to cache article content other than the |
262 current article, and that is re-read if you click on it in the thread | 262 current article, and that is re-read if you click on it in the thread |
263 window. | 263 window. |
264 | 264 |
265 | 265 1.13 knode |
266 2. Using Noffle as a Mail-News Gateway | 266 ---------- |
267 -------------------------------------- | 267 |
268 | 268 Version 0.1.13: |
269 In combination with procmail, Noffle can be used to gateway all | 269 |
270 mails from a maillist to a local newsgroup. | 270 Setting the number of days to cache an article to 0 in Options/Read News |
271 This is convenient for filtering out maillists from your personal emails. | 271 prevents the article being cached between knode sessions. |
272 The local group is created without postings allowed, | |
273 so mails to the maillist must be sent by email. | |
274 This is not a big problem, since most newsreaders allow choosing between | |
275 a reply and a followup. | |
276 | |
277 2.1 Create a local group | |
278 ------------------------ | |
279 | |
280 Example: | |
281 | |
282 noffle --create local.mail-lists.my-maillist-name | |
283 noffle --modify post local.mail-lists.my-maillist-name n | |
284 | |
285 2.2 Create a mail2news script | |
286 ----------------------------- | |
287 | |
288 You need a program that reads an article from stdin and posts it to | |
289 the local group. E.g. the following Python script will post an article | |
290 read from stdin to the newsgroup given as the first argument: | |
291 | |
292 #!/usr/bin/python | |
293 # Post article from stdin to noffle in group given as first argument. | |
294 import StringIO, nntplib, os, sys | |
295 if len(sys.argv) != 2: raise Exception("Need group as argument") | |
296 grp = sys.argv[1] | |
297 buf = StringIO.StringIO() | |
298 buf.writelines("Newsgroups: " + grp + "\n") | |
299 buf.write(sys.stdin.read()) | |
300 buf.seek(0) | |
301 os.system("/usr/local/bin/noffle --modify post " + grp + " y") | |
302 srv = nntplib.NNTP("localhost") | |
303 srv.group(grp) | |
304 srv.post(buf) | |
305 srv.quit | |
306 os.system("/usr/local/bin/noffle --modify post " + grp + " n") | |
307 | |
308 2.3 Create an entry in .procmailrc | |
309 ---------------------------------- | |
310 | |
311 Add a procmail entry for recognizing mails from the maillist and | |
312 posting it using mail2news. | |
313 | |
314 Example of a ~/.procmailrc: | |
315 | |
316 PATH=/bin:/usr/bin | |
317 MAILDIR=$HOME/Mail | |
318 LOGFILE=$MAILDIR/procmail.log | |
319 | |
320 :0 | |
321 * ^To.*my-maillist-name@lists.somewhere.org | |
322 |/usr/local/bin/mail2news local.mail-lists.my-maillist-name |