Selecting SSL/TLS sets port 993 and STARTTLS/none sets 143, so the port in the dropdown label is no longer just decoration. A non-standard custom port (anything other than 993/143/empty) is left untouched.