🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #233827

Re: Adding headers to m2n.py Zax script

#233827
From: Zax
Date: Fri, 10 Jul 2009 09:24
31 lines
2085 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Thu, 9 Jul 2009 21:07:04 +0200, <Use-Author-Supplied-Address-Header@[127.1]> wrote in
Message-Id: <20090709190704.GA24856@666.domain.invalid>:

> I wanted to add a Comments: header to the mails passing through my m2n.py script.
> Also how can i do this in postfix header_checks only for mail directed to my 
> m2n subdomain ??? Or any other way to add remove headers for my mail2news gateway.

Have a look in the msgparse function in mail2news.py.

At the bottom of that function, add a line like:
msg['X-Mail2News-Comments'] = "The quick brown fox"

Don't use a header of Comments: as it will clash with the one added by
the last hop remailer.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkpXCKkACgkQlKZ6CY7Vd0MpBwCfW/7JRyvJaQpvatKaHJJoq8i3
SOUAoJYGew3FSsHGMtmJPvnMMVfdd3zp
=gCAs
-----END PGP SIGNATURE-----

-- 
pub  1024D/8ED57743 2003-07-08 Bananasplit Operator
     Key fingerprint = 796F 67E0 E890 A0BB BDAE  EBB4 94A6 7A09 8ED5 7743
uid                            Admin <admin.bananasplit.info>
Technical Details
Message-ID: <h371bi$5ne$1@bananasplit.info>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.bananasplit.info!not-for-mail
References: <20090709190704.GA24856@666.domain.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <h371bi$5ne$1@bananasplit.info>
Subject: Re: Adding headers to m2n.py Zax script
Date: Fri, 10 Jul 2009 09:24:02 +0000
From: Zax <admin@bananasplit.info>
References: <20090709190704.GA24856@666.domain.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!news.bananasplit.info!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Bananasplit
Lines: 31
X-Complaints-To: abuse@bananasplit.info
NNTP-Posting-Date: Fri, 10 Jul 2009 09:24:02 +0000 (UTC)
User-Agent: slrn/pre1.0.0-11 (Linux)
X-PGP-KeyID: 0x8ED57743