Mercurial > noffle
diff docs/NOTES @ 108:8eb2975c8c1a noffle
[svn] 1.0pre6 merge
author | bears |
---|---|
date | Tue, 13 Jun 2000 07:44:21 +0100 |
parents | 651334f85995 |
children | 3c71e28c8eef |
line wrap: on
line diff
--- a/docs/NOTES Tue Jun 13 07:41:08 2000 +0100 +++ b/docs/NOTES Tue Jun 13 07:44:21 2000 +0100 @@ -15,12 +15,7 @@ 1.10 trn 1.11 xrn 1.12 knews - - 2. Using Noffle as a Mail-News Gateway - - 2.1 Create a local group - 2.2 Create a mail2news script - 2.3 Create an entry in .procmailrc + 1.13 knode ------------------------------------------------------------------------------- @@ -186,6 +181,11 @@ this is a bug in Gnus. Sometimes it helps to remove all ".newsrc" and similar files on ones home directory and restarting Gnus. +[ Alternatively, set option Gnus/Gnus Start/Gnus Init File from the ] +[ default ~/.newsrc to, say, ~/.gnus-newsrc. The hang I experienced ] +[ seems to be due to problems reading an existing .newsrc, nothing ] +[ to do with NOFFLE at all. ] + Here is a proposal for changing some key-bindings. ;; Customising Gnus for use with the NOFFLE news server @@ -262,61 +262,10 @@ current article, and that is re-read if you click on it in the thread window. - -2. Using Noffle as a Mail-News Gateway --------------------------------------- - -In combination with procmail, Noffle can be used to gateway all -mails from a maillist to a local newsgroup. -This is convenient for filtering out maillists from your personal emails. -The local group is created without postings allowed, -so mails to the maillist must be sent by email. -This is not a big problem, since most newsreaders allow choosing between -a reply and a followup. - -2.1 Create a local group ------------------------- - -Example: - - noffle --create local.mail-lists.my-maillist-name - noffle --modify post local.mail-lists.my-maillist-name n - -2.2 Create a mail2news script ------------------------------ - -You need a program that reads an article from stdin and posts it to -the local group. E.g. the following Python script will post an article -read from stdin to the newsgroup given as the first argument: +1.13 knode +---------- - #!/usr/bin/python - # Post article from stdin to noffle in group given as first argument. - import StringIO, nntplib, os, sys - if len(sys.argv) != 2: raise Exception("Need group as argument") - grp = sys.argv[1] - buf = StringIO.StringIO() - buf.writelines("Newsgroups: " + grp + "\n") - buf.write(sys.stdin.read()) - buf.seek(0) - os.system("/usr/local/bin/noffle --modify post " + grp + " y") - srv = nntplib.NNTP("localhost") - srv.group(grp) - srv.post(buf) - srv.quit - os.system("/usr/local/bin/noffle --modify post " + grp + " n") +Version 0.1.13: -2.3 Create an entry in .procmailrc ----------------------------------- - -Add a procmail entry for recognizing mails from the maillist and -posting it using mail2news. - -Example of a ~/.procmailrc: - - PATH=/bin:/usr/bin - MAILDIR=$HOME/Mail - LOGFILE=$MAILDIR/procmail.log - - :0 - * ^To.*my-maillist-name@lists.somewhere.org - |/usr/local/bin/mail2news local.mail-lists.my-maillist-name +Setting the number of days to cache an article to 0 in Options/Read News +prevents the article being cached between knode sessions.