|  |  | @ -80,12 +80,12 @@ def extract_host_port(host_and_port, default_port): | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | def get_server(protocol, authenticated=False): |  |  |  | def get_server(protocol, authenticated=False): | 
			
		
	
		
		
			
				
					
					|  |  |  |     if protocol == "imap": |  |  |  |     if protocol == "imap": | 
			
		
	
		
		
			
				
					
					|  |  |  |         hostname, port = extract_host_port(app.config['HOST_IMAP'], 143) |  |  |  |         hostname, port = extract_host_port(app.config['IMAP_ADDRESS'], 143) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     elif protocol == "pop3": |  |  |  |     elif protocol == "pop3": | 
			
		
	
		
		
			
				
					
					|  |  |  |         hostname, port = extract_host_port(app.config['HOST_POP3'], 110) |  |  |  |         hostname, port = extract_host_port(app.config['POP3_ADDRESS'], 110) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     elif protocol == "smtp": |  |  |  |     elif protocol == "smtp": | 
			
		
	
		
		
			
				
					
					|  |  |  |         if authenticated: |  |  |  |         if authenticated: | 
			
		
	
		
		
			
				
					
					|  |  |  |             hostname, port = extract_host_port(app.config['HOST_AUTHSMTP'], 10025) |  |  |  |             hostname, port = extract_host_port(app.config['AUTHSMTP_ADDRESS'], 10025) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         else: |  |  |  |         else: | 
			
		
	
		
		
			
				
					
					|  |  |  |             hostname, port = extract_host_port(app.config['HOST_SMTP'], 25) |  |  |  |             hostname, port = extract_host_port(app.config['SMTP_ADDRESS'], 25) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     return hostname, port |  |  |  |     return hostname, port | 
			
		
	
	
		
		
			
				
					|  |  | 
 |