* src/main.c
[claws.git] / src / main.c
index 123e2100bfdcc6d997e31bfc2d2979014fe66884..554162e6d328210eaf3c531b25cfb21713d205c6 100644 (file)
@@ -313,6 +313,11 @@ int main(int argc, char *argv[])
        /* ignore SIGPIPE signal for preventing sudden death of program */
        signal(SIGPIPE, SIG_IGN);
 
+       if (cmd.online_mode == ONLINE_MODE_OFFLINE)
+               main_window_toggle_work_offline(mainwin, TRUE);
+       if (cmd.online_mode == ONLINE_MODE_ONLINE)
+               main_window_toggle_work_offline(mainwin, FALSE);
+
        if (cmd.receive_all)
                inc_all_account_mail(mainwin, FALSE, 
                                     prefs_common.newmail_notify_manu);
@@ -342,11 +347,6 @@ int main(int argc, char *argv[])
                cmd.status_full_folders = NULL;
        }
 
-       if (cmd.online_mode == ONLINE_MODE_OFFLINE)
-               main_window_toggle_work_offline(mainwin, TRUE);
-       if (cmd.online_mode == ONLINE_MODE_ONLINE)
-               main_window_toggle_work_offline(mainwin, FALSE);
-
        prefs_toolbar_init();
 
        plugin_load_all("GTK");
@@ -877,9 +877,6 @@ static void open_compose_new(const gchar *address, GPtrArray *attach_files)
 static void send_queue(void)
 {
        GList *list;
-       FolderItem *def_outbox;
-
-       def_outbox = folder_get_default_outbox();
 
        for (list = folder_get_list(); list != NULL; list = list->next) {
                Folder *folder = list->data;
@@ -892,10 +889,6 @@ static void send_queue(void)
                                alertpanel_error(_("Some errors occurred while sending queued messages."));
                        if (res)        
                                folder_item_scan(folder->queue);
-                       if (prefs_common.savemsg && folder->outbox) {
-                               if (folder->outbox == def_outbox)
-                                       def_outbox = NULL;
-                       }
                }
        }
 }