'Returns appropriate POP port number depending on incoming server name'

def get_pop_port(self):

    port = 110
    ssl = False
    if (self.incoming_server_type == 'POP3-SSL'):
        port = 995
        ssl = True
    return (port, ssl)
