rval = re.match( "(\<.*\>)", ffrom) if rval != None: ffrom_addr = rval.group(1) if (ffrom_addr or ffrom) not in LOCAL_EXCEPTIONS: print "notinlocal" # Drop messages coming from us and SVN commits if re.search( "(bigworldtech\.com|syd\.microforte\.com\.au)", ffrom ) or re.search( "\[SVN\]", subj ): return