import re,socket,string,DNS,sys from HostCheckingUrlData import HostCheckingUrlData from smtplib import SMTP from UrlData import LinkCheckerException mailto_re = re.compile("^mailto:" "([\-\w.]+@[\-\w.?=]+|[\w\s]+<['\-\w.]+@[\-\w.?=]+>)$") class MailtoUrlData(HostCheckingUrlData): "Url link with mailto scheme" def buildUrl(self): HostCheckingUrlData.buildUrl(self) if not mailto_re.match(self.urlName): raise LinkCheckerException, "Illegal mailto link syntax" self.host = self.urlName[7:] i = string.find(self.host, "<") j = string.find(self.host, ">") if i!=-1 and j!=-1 and i