+ if (modest_type == MODEST_PROTO_TYPE_TRANSPORT || MODEST_PROTO_TYPE_ANY) {
+ server_account = get_server_account_for_account (self, account_name,
+ MODEST_PROTO_TYPE_TRANSPORT);
+ if (server_account)
+ account_iface = tny_account_from_name (self, account_name,
+ server_account,
+ MODEST_PROTO_TYPE_TRANSPORT);
+ if (!account_iface)
+ g_printerr ("modest: failed to create account iface for '%s:%s'\n",
+ account_name, server_account);
+ else
+ tny_list_iface_prepend (list, account_iface);
+ g_free (server_account);
+ }
+
+ if (modest_type == MODEST_PROTO_TYPE_STORE || MODEST_PROTO_TYPE_ANY) {
+ server_account = get_server_account_for_account (self, account_name,
+ MODEST_PROTO_TYPE_STORE);
+ if (server_account)
+ account_iface = tny_account_from_name (self, account_name,
+ server_account,
+ MODEST_PROTO_TYPE_STORE);
+ if (!account_iface)
+ g_printerr ("modest: failed to create account iface for '%s:%s'\n",
+ account_name, server_account);
+ else
+ tny_list_iface_prepend (list, account_iface);
+ g_free (server_account);
+ }