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:
calvin 2008-05-27 19:42:52 +00:00
parent 66ff422f6b
commit e6e51dbc6b

View file

@ -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):
"""