sync with Hiroyuki's 0.5.0claws2-3
[claws.git] / src / account.c
index 1c74f31..46a81f6 100644 (file)
@@ -275,8 +275,6 @@ void account_add(void)
                if (ac_prefs->protocol == A_IMAP4) {
                        folder = folder_new(F_IMAP, ac_prefs->account_name,
                                            ac_prefs->recv_server);
-                       folder_item_append(FOLDER_ITEM(folder->node->data),
-                                          folder_item_new("INBOX", "INBOX"));
                } else {
                        folder = folder_new(F_NEWS, ac_prefs->account_name,
                                            ac_prefs->nntp_server);
@@ -285,10 +283,9 @@ void account_add(void)
                folder->account = ac_prefs;
                ac_prefs->folder = REMOTE_FOLDER(folder);
                folder_add(folder);
-               if (ac_prefs->protocol == A_IMAP4) {
+               if (ac_prefs->protocol == A_IMAP4)
                        folder->create_tree(folder);
-                       folderview_set_all();
-               }
+               folderview_set_all();
        }
 }
 
@@ -334,9 +331,6 @@ void account_set_missing_folder(void)
                        if (ap->protocol == A_IMAP4) {
                                folder = folder_new(F_IMAP, ap->account_name,
                                                    ap->recv_server);
-                               folder_item_append
-                                       (FOLDER_ITEM(folder->node->data),
-                                        folder_item_new("INBOX", "INBOX"));
                        } else {
                                folder = folder_new(F_NEWS, ap->account_name,
                                                    ap->nntp_server);