Article View: alt.privacy.anon-server
Article #233853Re: Adding headers to m2n.py Zax script
From: gabrix
Date: Fri, 10 Jul 2009 18:40
Date: Fri, 10 Jul 2009 18:40
22 lines
2007 bytes
2007 bytes
Zax wrote: > On Fri, 10 Jul 2009 16:33:27 +0200, gabrix wrote in > Message-Id: <h37jg7$jv3$1@news.gabrix.ath.cx>: > >>> Have a look in the msgparse function in mail2news.py. >>> =20 >>> At the bottom of that function, add a line like: >>> msg['X-Mail2News-Comments'] =3D "The quick brown fox" >>> =20 >>> Don't use a header of Comments: as it will clash with the one added by >>> the last hop remailer. >>> =20 >> I have tried placing the >> >>> msg['X-Mail2News-Comments'] =3D "The quick brown fox" >> at the bottom of the main function in m2n.py but the script refuses to >> work ... :-( > > It needs to go in the mail2news.py file, not m2n.py. Not in main() but > in msgparse(). > Yep!
Technical Details
Message-ID:
<h381u3$q4q$1@news.gabrix.ath.cx>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!news.mixmin.net!news.gabrix.ath.cx!Noauth!not-for-mailReferences:
<20090709190704.GA24856@666.domain.invalid> <h371bi$5ne$1@bananasplit.info> <h37jg7$jv3$1@news.gabrix.ath.cx> <h37tba$tb4$1@bananasplit.info>Show Full Headers
Complete Article Headers
Message-ID: <h381u3$q4q$1@news.gabrix.ath.cx> Subject: Re: Adding headers to m2n.py Zax script Date: Fri, 10 Jul 2009 20:40:02 +0200 From: gabrix <gabrix@gabrix.ath.cx> References: <20090709190704.GA24856@666.domain.invalid> <h371bi$5ne$1@bananasplit.info> <h37jg7$jv3$1@news.gabrix.ath.cx> <h37tba$tb4$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!news.mixmin.net!news.gabrix.ath.cx!Noauth!not-for-mail Newsgroups: alt.privacy.anon-server Organization: Noauth InterNetNews site Lines: 22 NNTP-Posting-Host: /FJQTvAeo1HePhToZKjA0g.user.news.gabrix.ath.cx Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@gabrix.ath.cx NNTP-Posting-Date: Fri, 10 Jul 2009 18:40:03 +0000 (UTC) X-Notice: Filtered by Noauth _ Postfilter Cancel-Lock: sha1:XMKndMwWPVkYah/7A6UTsGnqmss= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; OpenPGP: id=80231A90; url=https://www.gabrix.ath.cx/0x80231A90.asc,http://pgp.gabrix.ath.cx:11371/ X-Enigmail-Version: 0.95.7