+ tny_account_set_forget_pass_func (tny_account, NULL);
+ tny_account_set_pass_func (tny_account, NULL);
+ tny_account_set_forget_pass_func (tny_account,
+ forget_pass_func ? forget_pass_func : forget_pass_dummy);
+ tny_account_set_pass_func (tny_account,
+ get_pass_func ? get_pass_func: get_pass_dummy);
+
+ tny_account_set_connection_policy (tny_account, modest_default_connection_policy_new ());
+
+ /* The callback will have an error for you if the reconnect
+ * failed. Please handle it (this is TODO). */
+