[Mailman-Developers] [ mailman-Bugs-579285 ] gate_news attempts connect to bad hosts

noreply@sourceforge.net noreply@sourceforge.net
Tue, 09 Jul 2002 13:16:48 -0700


Bugs item #579285, was opened at 2002-07-09 15:16
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=579285&group_id=103

Category: nntp/news
Group: 2.0.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Fox (drfickle)
Assigned to: Nobody/Anonymous (nobody)
Summary: gate_news attempts connect to bad hosts

Initial Comment:
I've been having gate_news spew out 'Connection
refused' errors every five minutes for quite some time
now. I finally tracked down what the problem is, and
hopefully someone more skilled in Python than I can
create a simple fix.

In the open_news function it doesn't check whether the
mlist.nntp_host variable is valid or not (in my case it
was a null string). A simple if check would solve the
problem here, but I think that's addressing the
symptom, not the problem.

Rather I think the real problem is that the MailList
class sets gateway_to_mail to "true" (I'm not sure what
the real value is), even if the nntp host name is
invalid. Then the process_lists function assumes that
nntp_host is valid and calls open_newsgroup on it.

I would suggest that if the nntp_host is invalid, that
the MailList class not set gateway_to_mail to be "true".

Thanks!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=579285&group_id=103