X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-protocol-info.c;h=b9b966daad4c1ef3a823ffa1ce79d3c3dde73a17;hb=ce6ffa222c658f6055cc0250bf0927ccfbbd4a9e;hp=4856897daa35b2ed053e02bc64deab30d1fcb889;hpb=ef4b0de9684e73696469b8154adbfcb3605e620c;p=modest diff --git a/src/modest-protocol-info.c b/src/modest-protocol-info.c index 4856897..b9b966d 100644 --- a/src/modest-protocol-info.c +++ b/src/modest-protocol-info.c @@ -48,10 +48,12 @@ static const ProtocolInfo ProtocolMap[] = { { MODEST_PROTOCOL_STORE_MAILDIR, "maildir", N_("Maildir") }, { MODEST_PROTOCOL_STORE_MBOX, "mbox", N_("MBox") }, + { MODEST_PROTOCOL_SECURITY_NONE, "none", N_("None") }, { MODEST_PROTOCOL_SECURITY_SSL, "ssl", N_("SSL") }, { MODEST_PROTOCOL_SECURITY_TLS, "tls", N_("TLS") }, + { MODEST_PROTOCOL_SECURITY_TLS_OP, "tls-op", N_("TLS when possible") }, /* op stands for optional */ - { MODEST_PROTOCOL_AUTH_NONE, "none", N_("none") }, + { MODEST_PROTOCOL_AUTH_NONE, "none", N_("None") }, { MODEST_PROTOCOL_AUTH_PASSWORD, "password", N_("Password") } }; const guint PROTOCOL_MAP_SIZE = sizeof(ProtocolMap)/sizeof(ProtocolInfo); @@ -113,16 +115,18 @@ modest_protocol_info_get_protocol_type (ModestProtocol proto) case MODEST_PROTOCOL_STORE_MBOX: return MODEST_PROTOCOL_TYPE_STORE; + case MODEST_PROTOCOL_SECURITY_NONE: case MODEST_PROTOCOL_SECURITY_SSL: case MODEST_PROTOCOL_SECURITY_TLS: + case MODEST_PROTOCOL_SECURITY_TLS_OP: return MODEST_PROTOCOL_TYPE_SECURITY; case MODEST_PROTOCOL_AUTH_NONE: case MODEST_PROTOCOL_AUTH_PASSWORD: return MODEST_PROTOCOL_TYPE_AUTH; - + default: - g_return_val_if_reached (MODEST_PROTOCOL_TYPE_UNKNOWN); + return MODEST_PROTOCOL_TYPE_UNKNOWN; } }