+check_and_offer_account_creation()
+{
+ if (!modest_account_mgr_has_accounts(modest_runtime_get_account_mgr(), TRUE)) {
+ const gboolean created = modest_run_account_setup_wizard (NULL);
+ if (!created) {
+ g_debug ("modest: %s: No account exists even after offering.\n", __FUNCTION__);
+ return FALSE;
+ }
+ }
+
+ return TRUE;
+}
+
+
+static gboolean