2007-04-20 Murray Cumming <murrayc@murrayc.com>
[modest] / src / modest-account-mgr.c
index 82dd892..89a3d5b 100644 (file)
@@ -410,6 +410,10 @@ modest_account_mgr_add_server_account (ModestAccountMgr * self,
                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:
@@ -434,6 +438,10 @@ modest_account_mgr_add_server_account (ModestAccountMgr * self,
                }
                g_slist_free (option_list);
                g_free (key);
+               
+               
+               /* Add the security settings: */
+               modest_server_account_set_security (self, name, security);
        }
 
 cleanup: