diff options
author | Matěj Cepl <mcepl@redhat.com> | 2014-07-24 14:45:29 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2014-07-24 14:45:29 +0200 |
commit | b140c056546efdfa69fa48098db8eef7b45077c0 (patch) | |
tree | ee2dd059ab5f2c3fb0391fd092f509c494b2d0c1 /docs | |
parent | f03c3eac2c17e730f4da66ac28acec978c18c20e (diff) | |
download | pyg-b140c056546efdfa69fa48098db8eef7b45077c0.tar.gz |
Adding examples and documents
Diffstat (limited to 'docs')
-rw-r--r-- | docs/01-leafnode-list-pygn-as-mail2news.html | 148 | ||||
-rw-r--r-- | docs/02-leafnode-list-pygn-as-mail2news.html | 85 | ||||
-rw-r--r-- | docs/joerg01.eml | 145 | ||||
-rw-r--r-- | docs/mail2news-gateway | 268 |
4 files changed, 646 insertions, 0 deletions
diff --git a/docs/01-leafnode-list-pygn-as-mail2news.html b/docs/01-leafnode-list-pygn-as-mail2news.html new file mode 100644 index 0000000..a582b0d --- /dev/null +++ b/docs/01-leafnode-list-pygn-as-mail2news.html @@ -0,0 +1,148 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [leafnode-list] pygn as a mail2news gateway + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:leafnode-list%40dt.e-technik.uni-dortmund.de?Subject=%5Bleafnode-list%5D%20%20pygn%20as%20a%20mail2news%20gateway&In-Reply-To="> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="001361.html"> + <LINK REL="Next" HREF="001368.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[leafnode-list] pygn as a mail2news gateway</H1> + <B>Matej Cepl</B> + <A HREF="mailto:leafnode-list%40dt.e-technik.uni-dortmund.de?Subject=%5Bleafnode-list%5D%20%20pygn%20as%20a%20mail2news%20gateway&In-Reply-To=" + TITLE="[leafnode-list] pygn as a mail2news gateway">ceplm at seznam.cz + </A><BR> + <I>Fri Sep 1 05:26:49 CEST 2006</I> + <P><UL> + <LI>Previous message: <A HREF="001361.html">[leafnode-list] leafnode-2.0.0.alpha20060831a snapshot available +</A></li> + <LI>Next message: <A HREF="001368.html">[leafnode-list] Re: pygn as a mail2news gateway +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#1364">[ date ]</a> + <a href="thread.html#1364">[ thread ]</a> + <a href="subject.html#1364">[ subject ]</a> + <a href="author.html#1364">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Hi, + +so now the real problem I am dealing with -- mail2news bidirectional +gateway. + +On leafnode 1.* I used mail2news patch by Nikita Youschenko +(<A HREF="http://zigzag.lvk.cs.msu.su/leafnode/">http://zigzag.lvk.cs.msu.su/leafnode/</A> -- 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 <A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">news at localhost</A> -- 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 + +:<i>0 bh: +</I>* ARG ?? local-mail-comp-boston +|<i> pygn2m -l $HOME/log-pygn2m -d -t <A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">discuss at blu.org</A> -s <A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">ceplm at seznam.cz</A> +</I> +and like this (for mail2news): + +:<i>0 bh: +</I>* ^List-Id:.*pkg-lyx-devel.lists.alioth.debian.org +|<i> pygm2n -l $HOME/log-pygm2n -d -n local.mail.comp.lyx-debian +</I> +/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.*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at fido7.ru</A> +ffm.*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at moderators.arcornews.de</A> +fj.*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at moderators.fj-news.org</A> +medlux.*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at news.medlux.ru</A> +nl.*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at nl.net</A> +relcom.*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at moderators.relcom.ru</A> +ukr.*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at sita.kiev.ua</A> + +# local groups are moderated by <A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">news at localhost</A> +local.*:news+%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at localhost</A> + +# 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. +*:%<A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">s at moderators.isc.org</A> + +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 +<A HREF="http://www.ceplovi.cz/matej/blog/,">http://www.ceplovi.cz/matej/blog/,</A> Jabber: <A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">ceplma at jabber.cz</A> +23 Marion St. #3, (617) 876-1259, ICQ 132822213 + +Home is where ~/.bashrc is. + -- from Usenet +-------------- next part -------------- +An embedded and charset-unspecified text was scrubbed... +Name: .procmailrc +Url: <A HREF="http://www.dt.e-technik.uni-dortmund.de/pipermail/leafnode-list/attachments/20060831/47d485c1/attachment.txt">http://www.dt.e-technik.uni-dortmund.de/pipermail/leafnode-list/attachments/20060831/47d485c1/attachment.txt</A> +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="001361.html">[leafnode-list] leafnode-2.0.0.alpha20060831a snapshot available +</A></li> + <LI>Next message: <A HREF="001368.html">[leafnode-list] Re: pygn as a mail2news gateway +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#1364">[ date ]</a> + <a href="thread.html#1364">[ thread ]</a> + <a href="subject.html#1364">[ subject ]</a> + <a href="author.html#1364">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">More information about the leafnode-list +mailing list</a><br> +</body></html> diff --git a/docs/02-leafnode-list-pygn-as-mail2news.html b/docs/02-leafnode-list-pygn-as-mail2news.html new file mode 100644 index 0000000..886d064 --- /dev/null +++ b/docs/02-leafnode-list-pygn-as-mail2news.html @@ -0,0 +1,85 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [leafnode-list] Re: pygn as a mail2news gateway + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:leafnode-list%40dt.e-technik.uni-dortmund.de?Subject=%5Bleafnode-list%5D%20Re%3A%20pygn%20as%20a%20mail2news%20gateway&In-Reply-To="> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="001364.html"> + <LINK REL="Next" HREF="001379.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[leafnode-list] Re: pygn as a mail2news gateway</H1> + <B>Matej Cepl</B> + <A HREF="mailto:leafnode-list%40dt.e-technik.uni-dortmund.de?Subject=%5Bleafnode-list%5D%20Re%3A%20pygn%20as%20a%20mail2news%20gateway&In-Reply-To=" + TITLE="[leafnode-list] Re: pygn as a mail2news gateway">ceplm at seznam.cz + </A><BR> + <I>Fri Sep 1 19:35:16 CEST 2006</I> + <P><UL> + <LI>Previous message: <A HREF="001364.html">[leafnode-list] pygn as a mail2news gateway +</A></li> + <LI>Next message: <A HREF="001379.html">[leafnode-list] Re: pygn as a mail2news gateway +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#1368">[ date ]</a> + <a href="thread.html#1368">[ thread ]</a> + <a href="subject.html#1368">[ subject ]</a> + <a href="author.html#1368">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Matej Cepl wrote: +><i> so now the real problem I am dealing with -- mail2news bidirectional +</I>><i> gateway. +</I> +I tried everything, but I am just not able to make it working. So I have to +ask again: is there any leafnode-style (aka "for dummies") HOWTO for +mail2news bi-directional gateway? The most far I got is that I have all my +local newsgroups unmoderated, so I at least get messages to them. When I +switch them to moderated, a) I don't get any messages to read, b) no +messages are posted anyway. Details of how I tried (see above in this +thread). + +Can anybody help me please? + +Thanks a lot, + +Matěj + +-- +GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC +<A HREF="http://www.ceplovi.cz/matej/blog/,">http://www.ceplovi.cz/matej/blog/,</A> Jabber: <A HREF="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">ceplma at jabber.cz</A> +23 Marion St. #3, (617) 876-1259, ICQ 132822213 + +See, when the GOVERNMENT spends money, it creates jobs; whereas +when the money is left in the hands of TAXPAYERS, God only knows +what they do with it. Bake it into pies, probably. Anything to +avoid creating jobs. + -- Dave Barry + + +</PRE> + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="001364.html">[leafnode-list] pygn as a mail2news gateway +</A></li> + <LI>Next message: <A HREF="001379.html">[leafnode-list] Re: pygn as a mail2news gateway +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#1368">[ date ]</a> + <a href="thread.html#1368">[ thread ]</a> + <a href="subject.html#1368">[ subject ]</a> + <a href="author.html#1368">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list">More information about the leafnode-list +mailing list</a><br> +</body></html> diff --git a/docs/joerg01.eml b/docs/joerg01.eml new file mode 100644 index 0000000..3b13030 --- /dev/null +++ b/docs/joerg01.eml @@ -0,0 +1,145 @@ +Path: news.gmane.org!not-for-mail +From: Joerg Dietrich <joerg-FR+SGtcfUjXk1uMJSBkQmQ@public.gmane.org> +Newsgroups: gmane.network.leafnode +Subject: Re: status of leafnode 2 and how to upgrade from + leafnode 1 +Date: Wed, 16 Aug 2006 16:15:54 +0200 +Lines: 60 +Approved: news@gmane.org +Message-ID: <20060816141554.GA30999@leviathan.homedns.org> +References: <hq35r3-igk.ln1@chelcicky.vysocina> + <m3irkvr86e.fsf@merlin.emma.line.org> +NNTP-Posting-Host: main.gmane.org +Mime-Version: 1.0 +Content-Type: text/plain; charset="iso-8859-1" +Content-Transfer-Encoding: quoted-printable +X-Trace: sea.gmane.org 1155748787 14017 80.91.229.2 (16 Aug 2006 17:19:47 GMT) +X-Complaints-To: usenet@sea.gmane.org +NNTP-Posting-Date: Wed, 16 Aug 2006 17:19:47 +0000 (UTC) +Original-X-From: leafnode-list-bounces+gnl-leafnode-list=m.gmane.org-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org Wed Aug 16 19:19:42 2006 +Return-path: <leafnode-list-bounces+gnl-leafnode-list=m.gmane.org-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org> +Envelope-to: gnl-leafnode-list@m.gmane.org +Original-Received: from krusty.dt.e-technik.uni-dortmund.de ([129.217.163.1]) + by ciao.gmane.org with esmtp (Exim 4.43) + id 1GDP3I-0004At-B1 + for gnl-leafnode-list@m.gmane.org; Wed, 16 Aug 2006 19:19:36 +0200 +Original-Received: from krusty.dt.e-technik.uni-dortmund.de (localhost [127.0.0.1]) + by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id E257285FB49 + for <gnl-leafnode-list@m.gmane.org>; Wed, 16 Aug 2006 19:19:35 +0200 (CEST) +X-Original-To: leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +Delivered-To: leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +Original-Received: from localhost (localhost [127.0.0.1]) + by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id + 692D185FB46 for <leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org>; + Wed, 16 Aug 2006 19:19:32 +0200 (CEST) +Original-Received: from krusty.dt.e-technik.uni-dortmund.de ([127.0.0.1]) + by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with ESMTP + id 09436-03 for <leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org>; + Wed, 16 Aug 2006 19:19:29 +0200 (CEST) +Original-Received: from nx5.hrz.uni-dortmund.de (nx5.HRZ.Uni-Dortmund.DE + [129.217.131.21]) + by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id + 9450585FE4E for <leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org>; + Wed, 16 Aug 2006 19:19:27 +0200 (CEST) +Original-Received: from ws6-3.us4.outblaze.com (ws6-3.us4.outblaze.com [205.158.62.199]) + by nx5.hrz.uni-dortmund.de (Postfix) with SMTP id 6E9BA4AA5F7 + for <leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org>; + Wed, 16 Aug 2006 18:54:36 +0200 (MET DST) +Original-Received: (qmail 12849 invoked from network); 16 Aug 2006 14:16:00 -0000 +Original-Received: from unknown (HELO leviathan.homedns.org) + (joerg-FR+SGtcfUjXk1uMJSBkQmQ@public.gmane.org@80.136.237.253) + by ws6-3.us4.outblaze.com with SMTP; 16 Aug 2006 14:15:58 -0000 +Original-Received: from leviathan.homedns.org (nobody@localhost [127.0.0.1]) + by leviathan.homedns.org (8.13.7/8.13.7) with ESMTP id k7GEFs5l031057 + for <leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org>; + Wed, 16 Aug 2006 16:15:55 +0200 +Original-Received: (from joerg@localhost) + by leviathan.homedns.org (8.13.7/8.12.11/Submit) id k7GEFsZg031053 + for leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org; + Wed, 16 Aug 2006 16:15:54 +0200 +Original-To: leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +Mail-Followup-To: leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +Content-Disposition: inline +In-Reply-To: <m3irkvr86e.fsf-SvAj7qPd1zteOLZSG9Hm2mD2FQJk+8+b@public.gmane.org> +User-Agent: Mutt/1.5.11 +X-Virus-Scanned: amavisd-new at dt.e-technik.uni-dortmund.de +X-Spam-Status: No, hits=0.001 tagged_above=0 required=7 + tests=[UNPARSEABLE_RELAY=0.001] +X-Spam-Level: +X-BeenThere: leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +X-Mailman-Version: 2.1.8 +Precedence: list +List-Id: Discussions on the Leafnode Usenet software package + <leafnode-list.dt.e-technik.uni-dortmund.de> +List-Unsubscribe: <https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list>, + <mailto:leafnode-list-request-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org?subject=unsubscribe> +List-Archive: <http://www.dt.e-technik.uni-dortmund.de/pipermail/leafnode-list> +List-Post: <mailto:leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org> +List-Help: <mailto:leafnode-list-request-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org?subject=help> +List-Subscribe: <https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list>, + <mailto:leafnode-list-request-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org?subject=subscribe> +Original-Sender: leafnode-list-bounces+gnl-leafnode-list=m.gmane.org-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +Errors-To: leafnode-list-bounces+gnl-leafnode-list=m.gmane.org-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +Xref: news.gmane.org gmane.network.leafnode:3524 +Archived-At: <http://permalink.gmane.org/gmane.network.leafnode/3524> + +On Mon, Aug 14, 2006 at 11:14:01AM +0200, Matthias Andree wrote: +> fetches group articles faster (thanks to pipelining ARTICLE or +> HEAD/BODY commands). + +Which was a big issue when Cornelius and I worked on this in +1999/2000 when many people still had expensive dial-up +connections that were not fully utilized by fetchnews. + +> Official mail2news gatewaying isn't integrated and probably suffers from +> the usual "Message-ID are unique per server" problem that impairs messages +> sent to several lists at the same time. I don't know the state of J=F6rg +> Dietrich's prior works or views on this either. + +I run a mail2news gateway for three or four mailing lists on my +computer. I wrote a python programme for this. It is available +from <http://www.astro.uni-bonn.de/~dietrich/mail2news/>. The +program lacks documentation and testing by a wider audience, +which is the reason for its "alpha status". However, the program +has been working for me for the last 2 years without any need of +intervention. But I have very little feedback from others. + +Mail2news.py tries to circumvent the problem of unique +Message-IDs by cross-posting to newsgroups corresponding to the +mailing lists the original mail was sent to. Because +cross-mailing does not happen with the few mailing list I am +subscribed to this feature is anything but well tested. + +> It is alpha because I don't care too much for compatibility between +> leafnode-2 versions until I'm happy with it (not much work has been done +> to leafnode-2 in the past weeks since I've been busy with difficult +> fetchmail bug fixes). Else, I know of few bugs that hinder daily +> personal use and am usually quick to fix bugs given the report is +> substantiated (for instance, with a stack backtrace). + +As someone who contributed a substantial amount of code in the +past, I find this a very frustrating status. Since 2000 leafnode-2 +provides significant improved features over leafnode-1. I have +been using leafnode-2 in production mode for four or five years +now. I really do not understand what keeps you from releasing it +instead of keeping it in alpha stage for 5 years and still +supporting leafnode-1, which has been technically obsoleted by +many improvements in leafnode-2. + +Cheers, + Jo:rg + +-- = + + ---=3D=3D=3D Encrypted mail preferred. Key-ID: 1024D/2B693EBF =3D= +=3D=3D--- +Fortune cookie of the day: +A clash of doctrine is not a disaster -- it is an opportunity. +-- = + +_______________________________________________ +leafnode-list mailing list +leafnode-list-DcxqERLcJkQeCZckdHr3IYGCWcDMi6xaD8jGkxKTr40@public.gmane.org +https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list +http://leafnode.sourceforge.net/ + diff --git a/docs/mail2news-gateway b/docs/mail2news-gateway new file mode 100644 index 0000000..1c57406 --- /dev/null +++ b/docs/mail2news-gateway @@ -0,0 +1,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-- + + |