Rev 78 | Rev 1915 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
def getscore(struct) :score = 0if struct.has_key("features") :features = struct.get("features")# Protocols : Mail for Exchange-3, POP3-1, SMTP-1, IMAP-1, IMAP4-1if features.has_key("Protocols") :ps = features.get("Protocols")if "Mail for Exchange" in ps :score += 3if "POP3" in ps :score += 1if "SMTP" in ps :score += 1if "IMAP" in ps :score += 1if "IMAP4" in ps :score += 1return score