Subversion Repositories SmartDukaan

Rev

Rev 1915 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1915 Rev 4193
Line 5... Line 5...
5
    if struct.has_key("features") :
5
    if struct.has_key("features") :
6
        features = struct.get("features")
6
        features = struct.get("features")
7
        
7
        
8
        # Protocols : Mail for Exchange-3, POP3-1, SMTP-1, IMAP-1, IMAP4-1
8
        # Protocols : Mail for Exchange-3, POP3-1, SMTP-1, IMAP-1, IMAP4-1
9
        if features.has_key("Protocols") :
9
        if features.has_key("Protocols") :
-
 
10
            score = 7.0
-
 
11
 
10
            protocols = features.get("Protocols")
12
            protocols = features.get("Protocols")
11
            
13
 
12
            if "IMAP" in protocols :
14
            if "IMAP" in protocols :
13
                score = 10.0
15
                score = 10.0
14
            else:
16
            if "IMAP4" in protocols :
15
                score = 7.0
17
                score = 10.0
16
                
-
 
-
 
18
 
17
    return score
19
    return score