2007-04-17 Murray Cumming <murrayc@murrayc.com>
+ * src/modest-account-mgr.c:
+ (modest_account_mgr_add_server_account): Set the security and secure-auth
+ options, and add a comment saying that the other camel-specific options should be
+ removed in future.
+
+2007-04-17 Murray Cumming <murrayc@murrayc.com>
+
* src/maemo/modest-account-settings-dialog.c: (check_data): Always return something,
found by valgrind.
* src/modest-tny-account-store.c: (account_list_free),
/* Sanity check: */
/* There must be at least one account now: */
GSList *account_names = modest_account_mgr_account_names (self->account_manager);
- if(account_names != NULL)
+ if(!account_names)
{
g_warning ("modest_account_mgr_account_names() returned NULL after adding an account.");
}
option_list = g_slist_append (option_list, MODEST_ACCOUNT_OPTION_USE_LSUB);
option_list = g_slist_append (option_list, MODEST_ACCOUNT_OPTION_CHECK_ALL);
+ /* TODO: Remove this hack. These are hard-coded camel options to make the connection work.
+ * The regular connection options (set later here) should be interpreted instead
+ * because in future these camel options will not be in gconf. murrayc.
+ */
/* Security options */
switch (security) {
case MODEST_PROTOCOL_SECURITY_NONE:
}
g_slist_free (option_list);
g_free (key);
+
+
+ /* Add the security and secure-auth settings: */
+ modest_server_account_set_option_security (self, name, security);
+ modest_server_account_set_option_secure_auth (self, name, auth);
}
cleanup: