Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
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) ..................
|Connecting Oracle using Python module cx_Oracle||2||115|
|Python http server responding to post requests without installing any third party modules||4||102|
|Macports Import beautifulsoup4 Problem||6||83|
|Python -- Read from csv for sending mail||9||63|