send the complete email address with VRFY command

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2654 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-06-12 21:17:10 +00:00
parent cc0f7cb113
commit ea052008a2

View file

@ -175,9 +175,9 @@ class MailtoUrl (urlbase.UrlBase):
linkcheck.log.debug(linkcheck.LOG_CHECK,
"MX host %r, preference %d", host, preference)
# connect
self.check_smtp_connect(mxdata, username)
self.check_smtp_connect(mxdata, username, domain)
def check_smtp_connect (self, mxdata, username):
def check_smtp_connect (self, mxdata, username, domain):
"""
Connect to SMTP servers and check emails.
@ -198,7 +198,7 @@ class MailtoUrl (urlbase.UrlBase):
linkcheck.log.debug(linkcheck.LOG_CHECK, "SMTP connected!")
smtpconnect = 1
self.url_connection.helo()
info = self.url_connection.verify(username)
info = self.url_connection.verify("%s@%s" % (username, domain))
linkcheck.log.debug(linkcheck.LOG_CHECK,
"SMTP user info %r", info)
d = {'info': str(info[1])}