+ /* Options */
+ options = modest_account_mgr_get_list (priv->account_mgr,
+ tny_account_get_id (tny_account),
+ MODEST_ACCOUNT_OPTIONS,
+ MODEST_CONF_VALUE_STRING,
+ TRUE,
+ &error);
+
+ if (error) {
+ g_warning ("Error retrieving account %s options: %s",
+ tny_account_get_id (tny_account), error->message);
+ g_error_free (error);
+ } else {
+ GSList *tmp = options;
+ while (options) {
+ tny_camel_account_add_option (TNY_CAMEL_ACCOUNT (tny_account), options->data);
+ g_free (options->data);
+ options = g_slist_next (options);
+ }
+ g_slist_free (tmp);
+ }
+