pygn2m(1) Python Gateway news to mail


pygs -t [email protected] -s [email protected] [ -e [email protected] ] [ -h ]


IMPORTANT: this man page is to be continued. The Whole pyg gateway is in devel. state. try -h option for more detailed option.

pygn2m reads from stdin a nntp article, sending it to [email protected] a rfc822 compliant email setting Resent-Sender: [email protected] and envelope [email protected] if exists, else [email protected]

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.


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 [email protected] -e [email protected] -s '[email protected]'

where [email protected] is the recipient (usually a mailing list)

Here is an header extract from [email protected] mbox:

From [email protected] From: [email protected] To: [email protected] Resent-Sender: [email protected]

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.


Cosimo Alfarano <al[email protected]>


Boh. send any bug to the author, please.