mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-17 04:41:01 +00:00
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:
parent
cc0f7cb113
commit
ea052008a2
1 changed files with 3 additions and 3 deletions
|
|
@ -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])}
|
||||
|
|
|
|||
Loading…
Reference in a new issue