🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Adding headers to m2n.py Zax script

#233854
From: gabrix
Date: Fri, 10 Jul 2009 19:23
65 lines
3522 bytes
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigFF81601EAFC2682D594F998C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

gabrix wrote:
> 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.
>>>> =3D20
>>>> At the bottom of that function, add a line like:
>>>> msg['X-Mail2News-Comments'] =3D3D "The quick brown fox"
>>>> =3D20
>>>> Don't use a header of Comments: as it will clash with the one added =
by
>>>> the last hop remailer.
>>>> =3D20
>>> I have tried placing the
>>>
>>>> msg['X-Mail2News-Comments'] =3D3D "The quick brown fox"
>>> at the bottom of the main function in m2n.py but the script refuses t=
o
>>> work ... :-(
>> It needs to go in the mail2news.py file, not m2n.py.  Not in main() bu=
t
>> in msgparse().
>>
> Yep!

I get this error putting the above header at the end of msgparse():

> Jul 10 21:20:18 mail postfix/pipe[31763]: 8227E3814C:=20
> to=3D<mail2news_nospam-20090710-alt.test[at]m2n<dot>gabrix<dot>ath<dot>=
cx>,=20
>relay=3Dmail2news, delay=3D0.16, delays=3D0.04/0.02/0/0.1, dsn=3D5.3.0,
status=3Dbounced
>(Command died with status 1: "/home/mail2news/scripts/m2n.py". Command o=
utput:=20
>Traceback (most recent call last):   File "/home/mail2news/scripts/m2n.p=
y",=20
>line 21, in <module>     import mail2news   File "/home/mail2news/script=
s/mail2news.py", line 496    =20
>msg['X-Mail2News-Comments'] =3D3D "The quick brown fox"

>>   ^ SyntaxError: invalid syntax )

Gab


--------------enigFF81601EAFC2682D594F998C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

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

iEYEARECAAYFAkpXlVYACgkQ2+ZUJYAjGpCvZQCaA1iAmWfQhhxB1nx9PBaDu3r/
gvsAn0JBYHyQSl+wIkv4mu8eYWEtLcrp
=BjnJ
-----END PGP SIGNATURE-----

--------------enigFF81601EAFC2682D594F998C--
Technical Details
Message-ID: <h384gs$r5v$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-mail
References: <20090709190704.GA24856@666.domain.invalid> <h371bi$5ne$1@bananasplit.info> <h37jg7$jv3$1@news.gabrix.ath.cx> <h37tba$tb4$1@bananasplit.info> <h381u3$q4q$1@news.gabrix.ath.cx>

Show Full Headers
Complete Article Headers
Message-ID: <h384gs$r5v$1@news.gabrix.ath.cx>
Subject: Re: Adding headers to m2n.py Zax script
Date: Fri, 10 Jul 2009 21:23:59 +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> <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-mail
Newsgroups: alt.privacy.anon-server
Organization: Noauth InterNetNews site
Lines: 65
NNTP-Posting-Host: /FJQTvAeo1HePhToZKjA0g.user.news.gabrix.ath.cx
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="------------enigFF81601EAFC2682D594F998C"
X-Complaints-To: usenet@gabrix.ath.cx
NNTP-Posting-Date: Fri, 10 Jul 2009 19:24:12 +0000 (UTC)
X-Notice: Filtered by Noauth _ Postfilter
Cancel-Lock: sha1:AgA2Kmu7v/P6WEcbql5t5MT1Jy0=
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