aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-08-06 09:26:12 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-08-06 09:26:12 +0000
commit2d01a4712433affe66a398c4769125015cb7691d (patch)
treeed799288cece78496e805e5dfe5723a66e033b90 /src/main.c
parenta13c336e4fe1c4b8c370a7b21d595ccf20b3f821 (diff)
win32: implemented automatic import of Outlook Express mail stores on first run.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2661 ee746299-78ed-0310-b773-934348b2243d
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