Fix standard port for SSL/TLS
443 is of course the https and not the IMAPS standard port. Fix. Thanks to Daniel Shahaf <d.s@daniel.shahaf.name> for the heads up. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
		
				
					committed by
					
						
						Nicolas Sebrecht
					
				
			
			
				
	
			
			
			
						parent
						
							9ecac29aaa
						
					
				
				
					commit
					2b9b6be6be
				
			@@ -311,7 +311,7 @@ class IMAPServer:
 | 
			
		||||
            elif SSLError and isinstance(e, SSLError) and e.errno == 1:
 | 
			
		||||
                # SSL unknown protocol error
 | 
			
		||||
                # happens e.g. when connecting via SSL to a non-SSL service
 | 
			
		||||
                if self.port != 443:
 | 
			
		||||
                if self.port != 993:
 | 
			
		||||
                    reason = "Could not connect via SSL to host '%s' and non-s"\
 | 
			
		||||
                        "tandard ssl port %d configured. Make sure you connect"\
 | 
			
		||||
                        " to the correct port." % (self.hostname, self.port)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user