+
+
+static void
+init_test_accounts (ModestAccountMgr *acc_mgr)
+{
+ const gchar *imap_test = "TnyImapTest";
+ const gchar *pop_test = "TnyPopTest";
+ const gchar *smtp_test = "TnySmtpTest";
+
+ if (!modest_account_mgr_account_exists (acc_mgr, imap_test, FALSE))
+ modest_account_mgr_add_server_account (acc_mgr,
+ imap_test,
+ "imap2.tinymail.org",
+ "tnytest", "tnytest",
+ MODEST_PROTOCOL_STORE_IMAP,
+ MODEST_PROTOCOL_SECURITY_NONE,
+ MODEST_PROTOCOL_AUTH_NONE);
+ if (!modest_account_mgr_account_exists (acc_mgr, pop_test, FALSE))
+ modest_account_mgr_add_server_account (acc_mgr,
+ pop_test,
+ "imap2.tinymail.org",
+ "tnytest", "tnytest",
+ MODEST_PROTOCOL_STORE_POP,
+ MODEST_PROTOCOL_SECURITY_NONE,
+ MODEST_PROTOCOL_AUTH_NONE);
+ if (!modest_account_mgr_account_exists (acc_mgr, smtp_test, FALSE))
+ modest_account_mgr_add_server_account (acc_mgr,
+ smtp_test,
+ "127.0.0.1",
+ NULL,NULL,
+ MODEST_PROTOCOL_TRANSPORT_SMTP,
+ MODEST_PROTOCOL_SECURITY_NONE,
+ MODEST_PROTOCOL_AUTH_NONE);
+
+ modest_account_mgr_add_account (acc_mgr, imap_test, imap_test, smtp_test);
+ modest_account_mgr_add_account (acc_mgr, pop_test, pop_test, smtp_test);
+}
+
+
+static void
+init_default_settings (ModestConf *conf)
+{
+ if (!modest_conf_key_exists (conf, MODEST_CONF_SHOW_TOOLBAR, NULL))
+ modest_conf_set_bool (conf, MODEST_CONF_SHOW_TOOLBAR, TRUE, NULL);
+
+ if (!modest_conf_key_exists (conf, MODEST_CONF_SHOW_TOOLBAR_FULLSCREEN, NULL))
+ modest_conf_set_bool (conf, MODEST_CONF_SHOW_TOOLBAR_FULLSCREEN, TRUE, NULL);
+
+ if (!modest_conf_key_exists (conf, MODEST_CONF_SHOW_CC, NULL))
+ modest_conf_set_bool (conf, MODEST_CONF_SHOW_CC, TRUE, NULL);
+
+ if (!modest_conf_key_exists (conf, MODEST_CONF_SHOW_BCC, NULL))
+ modest_conf_set_bool (conf, MODEST_CONF_SHOW_BCC, FALSE, NULL);
+
+ if (!modest_conf_key_exists (conf, MODEST_CONF_CONNECT_AT_STARTUP, NULL))
+ modest_conf_set_bool (conf, MODEST_CONF_CONNECT_AT_STARTUP, TRUE, NULL);
+
+}