Article View: alt.privacy.anon-server
Article #233850Re: Adding headers to m2n.py Zax script
From: Zax
Date: Fri, 10 Jul 2009 17:21
Date: Fri, 10 Jul 2009 17:21
27 lines
1943 bytes
1943 bytes
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().
--
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:
<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!de-l.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!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-mailReferences:
<20090709190704.GA24856@666.domain.invalid> <h371bi$5ne$1@bananasplit.info> <h37jg7$jv3$1@news.gabrix.ath.cx>Show Full Headers
Complete Article Headers
Message-ID: <h37tba$tb4$1@bananasplit.info> Subject: Re: Adding headers to m2n.py Zax script Date: Fri, 10 Jul 2009 17:21:46 +0000 From: Zax <admin@bananasplit.info> References: <20090709190704.GA24856@666.domain.invalid> <h371bi$5ne$1@bananasplit.info> <h37jg7$jv3$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!de-l.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!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: 27 X-Complaints-To: abuse@bananasplit.info NNTP-Posting-Date: Fri, 10 Jul 2009 17:21:46 +0000 (UTC) User-Agent: slrn/pre1.0.0-11 (Linux)