Subversion Repositories SmartDukaan

Rev

Rev 1915 | Blame | Compare with Previous | Last modification | View Log | RSS feed

def getscore(struct) :
    
    score = 0.0
    
    if struct.has_key("features") :
        features = struct.get("features")
        
        # Protocols : Mail for Exchange-3, POP3-1, SMTP-1, IMAP-1, IMAP4-1
        if features.has_key("Protocols") :
            score = 7.0

            protocols = features.get("Protocols")

            if "IMAP" in protocols :
                score = 10.0
            if "IMAP4" in protocols :
                score = 10.0

    return score