aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelog.Debian199
-rw-r--r--pygm2n.168
-rw-r--r--pygn2m.179
-rw-r--r--whitelist.575
4 files changed, 421 insertions, 0 deletions
diff --git a/changelog.Debian b/changelog.Debian
new file mode 100644
index 0000000..458e5aa
--- /dev/null
+++ b/changelog.Debian
@@ -0,0 +1,199 @@
+pyg (0.9.6-4.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Update package to the last python policy (Closes: #380905).
+ * Bump DH_COMPAT to 4.
+ * Bump Standards-Version to 3.7.2.
+
+ -- Pierre Habouzit <madcoder@debian.org> Sat, 12 Aug 2006 14:01:38 +0200
+
+pyg (0.9.6-4) unstable; urgency=low
+
+ * added some more header to be stripepd in mail2news class
+ closes:Bug#165322
+
+ -- Cosimo Alfarano <kalfa@debian.org> Tue, 2 Mar 2004 21:40:59 +0100
+
+pyg (0.9.6-3.1) unstable; urgency=low
+
+ * apply the full (not modified) version of the Matt's patch, for
+ compatibility reasons
+
+ -- Cosimo Alfarano <kalfa@debian.org> Thu, 6 Nov 2003 23:46:31 +0100
+
+pyg (0.9.6-3) unstable; urgency=low
+
+ * applied a modified version of patch from Matt Kraai sent in BTS
+ closes:Bug#213936
+
+ -- Cosimo Alfarano <kalfa@debian.org> Wed, 5 Nov 2003 11:59:29 +0100
+
+pyg (0.9.6-2) unstable; urgency=low
+
+ * typos in debian/control fixed (closes: #125276)
+
+ -- Cosimo Alfarano <kalfa@debian.org> Sat, 6 Apr 2002 18:52:57 +0200
+
+pyg (0.9.6-1) unstable; urgency=low
+
+ * minor changes to mail2news.py sendemail() method
+ now does str(msg) on exception
+ * addedd support for void header ('Cc: \n\r') even if it is not fully rfc
+ conform.
+ * addedd support for multiline header of the form
+ "Received: \n\r<text>" (closes: #124396)
+ * fixed helo hostname sent, now it's the box name
+ (closes: #122851)
+ * sorry for the long fixing time, to everyone was waiting for them.
+
+ -- Cosimo Alfarano <kalfa@debian.org> Wed, 3 Apr 2002 22:39:47 +0200
+
+pyg (0.9.5-1) unstable; urgency=low
+
+ * compiled against python2.1 (wlp.c)
+ * debian/control updated for dependancies
+ python (>= 2.1), I want it to be usable on any 2.X
+ the same for python-dev (closes: #119202)
+
+ -- Cosimo Alfarano <kalfa@debian.org> Mon, 12 Nov 2001 22:17:28 +0100
+
+pyg (0.9.4-7) unstable; urgency=low
+
+ * fixed some typos
+ * fixed import of getopt module (thanks to zack@debian.org)
+ * inverted 'if' and 'else' in line 78 of mail2news.py
+ that's not a bug, but I do it for readability closes: #105922
+
+ -- Cosimo Alfarano <kalfa@debian.org> Fri, 20 Jul 2001 00:49:26 +0200
+
+pyg (0.9.4-6) unstable; urgency=low
+
+ * added -P port option to pygm2n
+
+ -- Cosimo Alfarano <kalfa@debian.org> Sun, 11 Feb 2001 22:09:03 +0100
+
+pyg (0.9.4-5) unstable; urgency=low
+
+ * added suport for NNTP auth (thanks to Marc Sherman for his patch) closes: #84809
+
+ -- Cosimo Alfarano <kalfa@debian.org> Sun, 11 Feb 2001 16:43:09 +0100
+
+pyg (0.9.4-4) unstable; urgency=low
+
+ * moved files from /usr/sbin to /usr/bin closes: #84806
+ * changed Maintainer: filed to kalfa@debian.org addr
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Sun, 04 Feb 2000 18:50:00 +0100
+
+pyg (0.9.4-3) unstable; urgency=low
+
+ * Sponsored upload.
+ * fixed getopt problem with -M
+
+ -- Davide Puricelli (evo) <evo@debian.org> Sun, 30 Sep 2000 21:50:00 +0200
+
+pyg (0.9.4-2) unstable; urgency=low
+
+ * added Approved: header (pygm2n)
+ * added selection of smtpserver for relay (pygn2m)
+ * added conversion from In-Reply-To: to References: (pygm2n)
+ * added Suggests: news-transport-system , mail-transport-agent
+ * removed NNTP-Posting-Host, X-Trace
+ * added TODO file
+ * mail to news is working fine.
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Sun, 30 Sep 2000 21:50:00 +0200
+
+pyg (0.9.4-1) unstable; urgency=low
+
+ * Sponsored upload.
+ * New upstream version.
+ * mail to news gateway is working. Anyway testing it is adviced before use.
+
+ -- Davide Puricelli (evo) <evo@debian.org> Mon, 18 Sep 2000 19:45:19 +0200
+
+pyg (0.9.3-1) unstable; urgency=low
+
+ * started to write mail to news gateway module
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Sat, 16 Sep 2000 17:30:00 +0200
+
+pyg (0.9.2-3) unstable; urgency=low
+
+ * Sponsored upload.
+ * Swapped binary-{indep,arch} in debian/rules, closes: #71446.
+ * Added flex and bison to Build-Depends.
+
+ -- Davide Puricelli (evo) <evo@debian.org> Thu, 14 Sep 2000 16:34:10 +0200
+
+pyg (0.9.2-2) unstable; urgency=low
+
+ * debian/rules rewritten to a more readble dh_make style.
+ * moved example files from debian/ to exaples/
+ * dh_stripped *.so
+ * dh_undocumented *.py
+ * Sponsored upload for Cosimo Alfarano <alfarano@students.cs.unibo.it>
+ * Initial Debian release.
+
+ -- Davide Puricelli (evo) <evo@debian.org> Sat, 2 Sep 2000 22:35:25 +0200
+
+pyg (0.9.2-1) unstable; urgency=low
+
+ * written the whitelist parser (wlp) in yacc+flex
+ * written C funtions as python built-in module for wlp
+ * fixed parsecommandline() return object
+ * added -T opt for test mode and -V for verbose output
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Sun, 23 Jul 2000 19:30:00 +0200
+
+pyg (0.9.1-5) unstable; urgency=low
+
+ * added file locking on log
+ * modified default location of whitelist and log file to homedir.
+ log file will moved to /var/log as soon as possible
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Sun, 03 Jul 2000 18:00:00 +0200
+
+pyg (0.9.1-4) unstable; urgency=low
+
+ * Added Message-Id: logging in whitelist
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Sun, 02 Jul 2000 18:30:00 +0200
+
+pyg (0.9.1-3) unstable; urgency=low
+
+ * removed Sender: header from nntp article. It is usually set to news@news.domain
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Thu, 29 Jun 2000 16:30:00 +0200
+
+pyg (0.9.1-2) unstable; urgency=low
+
+ * modified copyright note in sources
+ * moved parse_cmdline() from news2mail.py to pygs
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Thu, 29 Jun 2000 02:30:00 +0200
+
+pyg (0.9.1-1) unstable; urgency=low
+
+ * enriched whitelist log system
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Thu, 29 Jun 2000 01:30:00 +0200
+
+pyg (0.9-3) unstable; urgency=low
+
+ * corrected load path for modules in pygs. now points to /usr/lib/pyg
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Wed, 28 Jun 2000 00:45:00 +0200
+
+pyg (0.9-2) unstable; urgency=low
+
+ * added basic (and rudimental) whitelist functionality (whitelist.py)
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Wed, 28 Jun 2000 00:05:00 +0200
+
+pyg (0.9-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Cosimo Alfarano <alfarano@students.cs.unibo.it> Sun, 25 Jun 2000 17:52:35 +0200
+
diff --git a/pygm2n.1 b/pygm2n.1
new file mode 100644
index 0000000..63f2e09
--- /dev/null
+++ b/pygm2n.1
@@ -0,0 +1,68 @@
+.\" wing requests are required for all man pages.
+.TH pygm2n 1 "Sun Sep 12 18:10:00 CEST 2000" "" "Python Gateway mail to news"
+.SH NAME
+pygm2n - Python Gateway mail to news
+.SH SYNOPSIS
+.B pygm2n
+.BR -n
+.IR newsgroups
+[
+.BR -s
+.IR newsserver
+]
+[
+.BR -h
+]
+
+.SH DESCRIPTION
+.B IMPORTANT:
+this man page is to be continued. The Whole pyg gateway is in
+.B devel.\ state.
+try -h option for more detailed option.
+
+pygm2n reads from stdin an email, sending it to newsgroups, a comma separated list without spaces of newsgroup names (at least one), rfc799 compliant.
+
+If pygm2n reads from stdin a sigle line starting with /, it is
+considered an absolute path to a single-email mailbox,
+so pygm2n will open and read it.
+
+.B Note
+that now pyg can't read a real mailbox, with many emails. If you
+give it in input, pyg will post the whole mailbox as a single email.
+
+\" The following requests should be uncommented and
+.\" used where appropriate. This next request is
+.\" for sections 2 and 3 function return values only.
+.\" .Sh RETURN VALUES
+.\" This next request is for sections 1, 6, 7 & 8 only
+.\" .Sh ENVIRONMENT
+.\" .Sh FILES
+.SH EXAMPLES
+There is some documetation in /urs/share/doc/pyg
+
+I created mailgate user (moderator of local.moderated ng).
+Subscribe to a list with this user (or simply email one message to).
+Every email posted to this user will send to newsgroups,
+in its .procmailrc I've put something like:
+
+:0 bh
+* ^From *mailinglist-request@lists.debian.org
+| $HOME/pygm2n -n local.debian.mailinglist
+
+
+.\" This next request is for sections 1, 6, 7 & 8 only
+.\" (command return values (to shell) and
+.\" fprintf/stderr type diagnostics)
+.\" .Sh DIAGNOSTICS
+.\" The next request is for sections 2 and 3 error
+.\" and signal handling only.
+.\" .Sh ERRORS
+.\" .Sh SEE ALSO
+.\" .Sh STANDARDS
+.\" .Sh HISTORY
+.SH AUTHORS
+Cosimo Alfarano <alfarano@students.cs.unibo.it>
+
+.SH BUGS
+Boh. send any bug, advice or opinion to the author, please.
+
diff --git a/pygn2m.1 b/pygn2m.1
new file mode 100644
index 0000000..5b2750e
--- /dev/null
+++ b/pygn2m.1
@@ -0,0 +1,79 @@
+.\" wing requests are required for all man pages.
+.TH pygn2m 1 "Sun Sep 12 22:40:00 CEST 2000" "" "Python Gateway news to mail"
+.SH NAME
+pygn2m - Python Gateway news to mail
+.SH SYNOPSIS
+.B pygs
+.BR -t
+.IR recipient@domain1
+.BR -s
+.IR sender@domain2
+[
+.BR -e
+.IR envelope@domain3
+]
+[
+.BR -h
+]
+
+.SH DESCRIPTION
+.B IMPORTANT:
+this man page is to be continued. The Whole pyg gateway is in
+.B devel.\ state.
+try -h option for more detailed option.
+
+pygn2m reads from stdin a nntp article, sending it to recipient@domain1
+a rfc822 compliant email setting Resent-Sender: sender@domain2
+and envelope envelope@domain3 if exists, else sender@domain2.
+
+If pygn2m reads from stdin a sigle line starting with /, it is
+considered an absolute path to an article (ie in a spool),
+so pygn2m will open and read it.
+
+\" The following requests should be uncommented and
+.\" used where appropriate. This next request is
+.\" for sections 2 and 3 function return values only.
+.\" .Sh RETURN VALUES
+.\" This next request is for sections 1, 6, 7 & 8 only
+.\" .Sh ENVIRONMENT
+.\" .Sh FILES
+.SH EXAMPLES
+There is some documetation in /urs/share/doc/pyg
+
+I created mailgate user (moderator of local.moderated ng).
+Every article posted in local.moderated is sent to mailgate,
+in its .procmailrc I've put:
+
+:0 bhc
+* ^To: *local-moderated
+| $HOME/pygs -t kalfa@localhost -e mailgate@students.cs.unibo.it -s 'cosimo@students.cs.unibo.it'
+
+
+where kalfa@localhost is the recipient (usually a mailing list)
+
+Here is an header extract from kalfa@localhost mbox:
+
+From mailgate@students.cs.unibo.it
+From: whosentnntparticle@domain4
+To: kalfa@localhost
+Resent-Sender: cosimo@students.cs.unibo.it
+
+note that sender and envelope are different. rfc822 says that Sender: have to be a human user (not a program or similia). envelope can mailgate user.
+
+
+.\" This next request is for sections 1, 6, 7 & 8 only
+.\" (command return values (to shell) and
+.\" fprintf/stderr type diagnostics)
+.\" .Sh DIAGNOSTICS
+.\" The next request is for sections 2 and 3 error
+.\" and signal handling only.
+.\" .Sh ERRORS
+.\" .Sh SEE ALSO
+.\" .Sh STANDARDS
+.\" .Sh HISTORY
+.SH AUTHOR
+Cosimo Alfarano <alfarano@students.cs.unibo.it>
+
+.SH BUGS
+Boh. send any bug to the author, please.
+
diff --git a/whitelist.5 b/whitelist.5
new file mode 100644
index 0000000..d129243
--- /dev/null
+++ b/whitelist.5
@@ -0,0 +1,75 @@
+.\" wing requests are required for all man pages.
+.Dd July 23, 2000
+.Os Debian GNU/Linux
+.Dt whitelist 5
+.Sh NAME
+.Nm pygs
+.Nd the PYthon Gateway Script
+.Sh SYNOPSIS
+pygs
+-t recipient@domain1
+-s sender@domain2
+[-e envelope@domain3]
+[-d]
+[-T]
+[-V]
+[-l logfile]
+[-w whitelist]
+[-h]
+.Sh DESCRIPTION
+NOTE: this man page is to be continued :)
+
+pygs read from stdin a nntp article, sending it to recipient@domain1 a rfc822 compliant email setting Resent-Sender: sender@domain2 and envelope envelope@domain3 if exists, else sender@domain2.
+.Sh OPTIONS
+.Tp 0.5i
+.B \-t
+
+\" The following requests should be uncommented and
+.\" used where appropriate. This next request is
+.\" for sections 2 and 3 function return values only.
+.\" .Sh RETURN VALUES
+.\" This next request is for sections 1, 6, 7 & 8 only
+.\" .Sh ENVIRONMENT
+.\" .Sh FILES
+.Sh EXAMPLES
+There is some documetation in /urs/share/doc/pyg
+
+I created mailgate user (moderator of local.moderated ng).
+Every article posted in local.moderated is sent to mailgate,
+in its .procmailrc I've put:
+
+.Bd
+.Li :0 bhc
+.Li \ * ^To: *local-moderated
+.Li | $HOME/pygs -t kalfa@localhost -e mailgate@students.cs.unibo.it -s 'cosimo@students.cs.unibo.it'
+.Ed
+
+where kalfa@localhost is the recipient (it usually is a mailing list)
+
+an header extract from kalfa@localhost mbox:
+
+From mailgate@students.cs.unibo.it
+From: whosentnntparticle@domain4
+To: kalfa@localhost
+Resent-Sender: cosimo@students.cs.unibo.it
+
+note that sender and envelope are different. rfc822 says that Sender: have to be a human user (not a program or similia). envelope can mailgate user.
+
+.
+
+.\" This next request is for sections 1, 6, 7 & 8 only
+.\" (command return values (to shell) and
+.\" fprintf/stderr type diagnostics)
+.\" .Sh DIAGNOSTICS
+.\" The next request is for sections 2 and 3 error
+.\" and signal handling only.
+.\" .Sh ERRORS
+.\" .Sh SEE ALSO
+.\" .Sh STANDARDS
+.\" .Sh HISTORY
+.Sh AUTHORS
+Cosimo Alfarano <alfarano@students.cs.unibo.it>
+.Sh BUGS
+Boh. send any bug to the author
+.An , please.
+