aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 234c9a0b..81bdfd18 100644
--- a/src/main.c
+++ b/src/main.c
@@ -214,6 +214,7 @@ int main(int argc, char *argv[])
#endif
GObject *syl_app;
PrefsAccount *new_account = NULL;
+ gboolean first_run = FALSE;
app_init();
parse_cmd_opt(argc, argv);
@@ -339,6 +340,7 @@ int main(int argc, char *argv[])
main_window_reflect_prefs_all();
if (folder_read_list() < 0) {
+ first_run = TRUE;
setup_mailbox();
folder_write_list();
}
@@ -367,6 +369,10 @@ int main(int argc, char *argv[])
g_signal_emit_by_name(syl_app, "init-done");
+ if (first_run) {
+ setup_import();
+ }
+
remote_command_exec();
#if USE_UPDATE_CHECK