mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-18 11:31:06 +00:00
Overwrite old results when checking a list of emails.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3777 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
66ff422f6b
commit
e6e51dbc6b
1 changed files with 6 additions and 3 deletions
|
|
@ -161,7 +161,8 @@ class MailtoUrl (urlbase.UrlBase):
|
|||
answers = resolver.query(domain, 'A')
|
||||
if len(answers) == 0:
|
||||
self.set_result(_("No host for %(domain)s found.") %
|
||||
{'domain': domain}, valid=False)
|
||||
{'domain': domain}, valid=False,
|
||||
overwrite=True)
|
||||
return
|
||||
# set preference to zero
|
||||
mxdata = [(0, rdata.to_text(omit_final_dot=True))
|
||||
|
|
@ -223,9 +224,11 @@ class MailtoUrl (urlbase.UrlBase):
|
|||
if smtpconnect:
|
||||
break
|
||||
if not smtpconnect:
|
||||
self.set_result(_("Could not connect, but syntax is correct"))
|
||||
self.set_result(_("Could not connect, but syntax is correct"),
|
||||
overwrite=True)
|
||||
else:
|
||||
self.set_result(_("Found MX mail host %(host)s") % {'host': host})
|
||||
self.set_result(_("Found MX mail host %(host)s") % {'host': host},
|
||||
overwrite=True)
|
||||
|
||||
def close_connection (self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue