[Mailman-Developers] Re: Bug#57596: mailman: Here we go again... post: nntplib.error_perm : 500 "POST" not implemented; try "help". (fwd)
Lazarus Long
lazarus@overdue.dhis.net
Wed, 9 Feb 2000 23:07:51 +0000
--H1spWtNR+x+ondvy
Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6"
--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
On Wed, Feb 09, 2000 at 11:36:41AM +0100, Gergely Madarasz wrote:
>=20
> Another day, another bugreport :/
Sigh. I've gotten mail regarding this containing obscenities from
another developer. I'd love to get this fixed rather than filing new
bug reports. I'm sure we all would.
> Lazarus, can you tell me if this is after you applied the last patch
> suggested by Thomas, for gate_news ?
The only patch i aplied follows:
--- cron/gate_news.orig Mon Feb 7 22:47:52 2000
+++ cron/gate_news Mon Feb 7 22:53:23 2000
@@ -76,7 +76,16 @@
# update the gate_watermarks file. we'll actually do the gating i=
n a
# child process
conn =3D nntplib.NNTP(mlist.nntp_host)
- r,c,first,last,n =3D conn.group(mlist.linked_newsgroup)
+ try:
+ r,c,first,last,n =3D conn.group(mlist.linked_newsgroup)
+ except nntplib.error_perm:
+ # We got an error 500, probably meaning that the 'group' comma=
nd
+ # is not implemented. A likely scenario causing this is when
+ # running the Mailman gateway on the same machine as the news
+ # server; the server defaults to news feed mode. We need to s=
et
+ # the connection to reader mode first.
+ conn.shortcmd('mode reader')
+ r,c,first,last,n =3D conn.group(mlist.linked_newsgroup)
first =3D int(first)
last =3D int(last)
wm =3D watermarks.get(name, 0)
--=20
Please encrypt all mail whenever possible. The following Public Keys
for Lazarus Long <lazarus@overdue.dhis.net> are available upon request:
Type Bits/KeyID Fingerprint (GnuPG (GPG) is preferred.)
GPG/ELG: 2048g/92F6493B 2C55 E967 278B 4E8B D25B F5F3 352B 9B0E 32C3 3BA4
GPG/DSA: 1024D/32C33BA4 (none for DSA keys)
--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gate_news.diff"
--- cron/gate_news.orig Mon Feb 7 22:47:52 2000
+++ cron/gate_news Mon Feb 7 22:53:23 2000
@@ -76,7 +76,16 @@
# update the gate_watermarks file. we'll actually do the gating in a
# child process
conn = nntplib.NNTP(mlist.nntp_host)
- r,c,first,last,n = conn.group(mlist.linked_newsgroup)
+ try:
+ r,c,first,last,n = conn.group(mlist.linked_newsgroup)
+ except nntplib.error_perm:
+ # We got an error 500, probably meaning that the 'group' command
+ # is not implemented. A likely scenario causing this is when
+ # running the Mailman gateway on the same machine as the news
+ # server; the server defaults to news feed mode. We need to set
+ # the connection to reader mode first.
+ conn.shortcmd('mode reader')
+ r,c,first,last,n = conn.group(mlist.linked_newsgroup)
first = int(first)
last = int(last)
wm = watermarks.get(name, 0)
--y0ulUmNC+osPPQO6--
--H1spWtNR+x+ondvy
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Now ready for primetime! http://www.gnupg.org
iD8DBQE4ofNHNSubDjLDO6QRArOOAJ4safl/w/vzMIc3RD0aGqYCEybjlwCfTnTB
G7meKaKRw4OCaMyYrA6uxxw=
=SkQj
-----END PGP SIGNATURE-----
--H1spWtNR+x+ondvy--