+
+ /* Outgoing username is mandatory if outgoing auth is secure */
+ if (self->combo_outgoing_auth) {
+ outgoing_auth_protocol = modest_secureauth_combo_box_get_active_secureauth (
+ MODEST_SECUREAUTH_COMBO_BOX (self->combo_outgoing_auth));
+ if (enable_ok &&
+ outgoing_auth_protocol != MODEST_PROTOCOL_AUTH_NONE &&
+ entry_is_empty (self->entry_outgoing_username))
+ enable_ok = FALSE;
+ }