Rev 1915 | Blame | Compare with Previous | Last modification | View Log | RSS feed
def getscore(struct) :score = 0.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") :score = 7.0protocols = features.get("Protocols")if "IMAP" in protocols :score = 10.0if "IMAP4" in protocols :score = 10.0return score