set smtp debug

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2098 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-12-07 11:06:34 +00:00
parent 9829268533
commit 9e843d71a7

View file

@ -120,7 +120,10 @@ class MailtoUrl (urlbase.UrlBase):
preference = rdata.preference
linkcheck.log.debug(linkcheck.LOG_CHECK,
"SMTP check for %r (pref %d)", host, preference)
self.url_connection = smtplib.SMTP(host)
self.url_connection = smtplib.SMTP()
if self.consumer.config.get("debug"):
self.url_connection.set_debuglevel(1)
self.url_connection.connect(host)
linkcheck.log.debug(linkcheck.LOG_CHECK,
"SMTP connected!")
smtpconnect = 1