Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
def msgfactory(self, fp): try: return email.message_from_file(fp) except email.errors.MessageParseError: # Don't return None since that will # stop the mailbox iterator return '' def mailstats(self, user): if os.path.isfile('/var/spool/mail/'+user): fp=open('/var/spool/mail/'+user) else: print 'I cannot open mail for user',user sys.exit(1) str = self.msgfactory(fp) mbox = mailbox.UnixMailbox(fp, str) ..................
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.