X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-protocol-registry.c;h=2503f33657a95653b7ddd1ec4962373b6f4ff05f;hp=42ffcd69766ad2ce8b5c91f937fa0ae71410af29;hb=22a2aa923978b9bdcdb9d1fb6eebc08729a7a0e9;hpb=aede4b15e958567feedcbd3d2e156dadf6087d7d diff --git a/src/modest-protocol-registry.c b/src/modest-protocol-registry.c index 42ffcd6..2503f33 100644 --- a/src/modest-protocol-registry.c +++ b/src/modest-protocol-registry.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -298,7 +299,7 @@ modest_protocol_registry_get_pair_list_by_tag (ModestProtocolRegistry *self, con { ModestProtocolRegistryPrivate *priv; GHashTable *tag_table; - GSList *result; + GSList *result = NULL; g_return_val_if_fail (MODEST_IS_PROTOCOL_REGISTRY (self), NULL); priv = MODEST_PROTOCOL_REGISTRY_GET_PRIVATE (self); @@ -310,7 +311,7 @@ modest_protocol_registry_get_pair_list_by_tag (ModestProtocolRegistry *self, con g_hash_table_foreach (tag_table, (GHFunc) add_protocol_to_pair_list, &result); - return result; + return result; } static gboolean @@ -437,9 +438,10 @@ modest_protocol_registry_set_to_default (ModestProtocolRegistry *self) protocol = modest_account_protocol_new ("smtp", N_("SMTP Server"), 25, 465, - TNY_TYPE_CAMEL_TRANSPORT_ACCOUNT); + MODEST_TYPE_TRANSPORT_ACCOUNT_DECORATOR); smtp_protocol_type_id = modest_protocol_get_type_id (protocol); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_CONNECT_ERROR, translation_is_userdata, "emev_ib_ui_smtp_server_invalid", NULL); + modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_ACCOUNT_CONNECTION_ERROR, translation_is_userdata, "emev_ib_ui_smtp_server_invalid", NULL); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_AUTH_ERROR, translation_is_userdata, "emev_ni_ui_smtp_authentication_fail_error", NULL); modest_protocol_registry_add (self, protocol, 2, MODEST_PROTOCOL_REGISTRY_TRANSPORT_STORE_PROTOCOLS, @@ -455,13 +457,15 @@ modest_protocol_registry_set_to_default (ModestProtocolRegistry *self) modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_AUTH_ERROR, translation_is_userdata, "emev_ni_ui_pop3_msg_connect_error", NULL); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_ACCOUNT_CONNECTION_ERROR, translation_is_userdata, "emev_ni_ui_pop3_msg_connect_error", NULL); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_MSG_NOT_AVAILABLE, translation_is_userdata_no_param, "emev_ni_ui_pop3_msg_recv_error", NULL); + modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_MSG_NOT_AVAILABLE_LOST_HEADER, translation_is_userdata, "emev_ni_ui_pop3_msg_recv_error", NULL); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_SSL_PROTO_NAME, translation_is_userdata_no_param, "mcen_fi_advsetup_other_security_securepop3s", NULL); modest_protocol_registry_add (self, protocol, 3, MODEST_PROTOCOL_REGISTRY_TRANSPORT_STORE_PROTOCOLS, MODEST_PROTOCOL_REGISTRY_STORE_PROTOCOLS, MODEST_PROTOCOL_REGISTRY_REMOTE_STORE_PROTOCOLS, MODEST_PROTOCOL_REGISTRY_HAS_LEAVE_ON_SERVER_PROTOCOLS, - MODEST_PROTOCOL_REGISTRY_STORE_FORBID_MESSAGE_ADD, + MODEST_PROTOCOL_REGISTRY_STORE_FORBID_INCOMING_XFERS, + MODEST_PROTOCOL_REGISTRY_STORE_LIMIT_HEADER_WINDOW, NULL); g_object_unref (protocol); @@ -474,6 +478,7 @@ modest_protocol_registry_set_to_default (ModestProtocolRegistry *self) modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_AUTH_ERROR, translation_is_userdata, "emev_ni_ui_imap_connect_server_error", NULL); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_ACCOUNT_CONNECTION_ERROR, translation_is_userdata, "emev_ni_ui_imap_connect_server_error", NULL); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_MSG_NOT_AVAILABLE, translation_is_userdata, "emev_ni_ui_imap_message_not_available_in_server", NULL); + modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_MSG_NOT_AVAILABLE_LOST_HEADER, translation_is_userdata, "emev_ni_ui_pop3_msg_recv_error", NULL); modest_protocol_set_translation (protocol, MODEST_PROTOCOL_TRANSLATION_SSL_PROTO_NAME, translation_is_userdata_no_param, "mcen_fi_advsetup_other_security_secureimap4s", NULL); account_options = tny_simple_list_new (); pair = tny_pair_new (MODEST_ACCOUNT_OPTION_USE_LSUB, ""); @@ -489,6 +494,7 @@ modest_protocol_registry_set_to_default (ModestProtocolRegistry *self) MODEST_PROTOCOL_REGISTRY_STORE_PROTOCOLS, MODEST_PROTOCOL_REGISTRY_REMOTE_STORE_PROTOCOLS, MODEST_PROTOCOL_REGISTRY_STORE_HAS_FOLDERS, + MODEST_PROTOCOL_REGISTRY_STORE_LIMIT_HEADER_WINDOW, NULL); g_object_unref (protocol);