lock_socket_input_cb,
mainwin);
+ prefs_account_init();
account_read_config_all();
if (folder_read_list() < 0) {
prefs_matcher_read_config();
/* make one all-folder processing before using sylpheed */
+ main_window_cursor_wait(mainwin);
folder_func_to_all_folders(initial_processing, (gpointer *)mainwin);
+ main_window_cursor_normal(mainwin);
/* if Sylpheed crashed, rebuild caches */
if (!cmd.crash && is_file_exist(get_crashfile_name())) {
if (cmd.online_mode == ONLINE_MODE_ONLINE)
main_window_toggle_work_offline(mainwin, FALSE);
+ if (cmd.status_folders) {
+ g_ptr_array_free(cmd.status_folders, TRUE);
+ cmd.status_folders = NULL;
+ }
+ if (cmd.status_full_folders) {
+ g_ptr_array_free(cmd.status_full_folders, TRUE);
+ cmd.status_full_folders = NULL;
+ }
+
+ sylpheed_register_idle_function(sylpheed_gtk_idle);
+
+ prefs_toolbar_init();
+
+ plugin_load_all("GTK");
+
+ static_mainwindow = mainwin;
+
+#ifdef HAVE_STARTUP_NOTIFICATION
+ startup_notification_complete(FALSE);
+#endif
+
if (cmd.receive_all)
inc_all_account_mail(mainwin, FALSE,
prefs_common.newmail_notify_manu);
}
if (cmd.send)
send_queue();
- if (cmd.status_folders) {
- g_ptr_array_free(cmd.status_folders, TRUE);
- cmd.status_folders = NULL;
- }
- if (cmd.status_full_folders) {
- g_ptr_array_free(cmd.status_full_folders, TRUE);
- cmd.status_full_folders = NULL;
- }
-
- sylpheed_register_idle_function(sylpheed_gtk_idle);
-
- prefs_toolbar_init();
-
- plugin_load_all("GTK");
-
- static_mainwindow = mainwin;
-#ifdef HAVE_STARTUP_NOTIFICATION
- startup_notification_complete(FALSE);
-#endif
gtk_main();
exit_sylpheed(mainwin);
debug_print("%s\n", buf);
g_free(buf);
- main_window_cursor_wait(mainwin);
-
if (item->prefs->enable_processing)
folder_item_apply_processing(item);
debug_print("done.\n");
STATUSBAR_POP(mainwin);
- main_window_cursor_normal(mainwin);
}
static void draft_all_messages(void)