0.9.7claws10
[claws.git] / src / account.c
index 739f0cd9708f7fee4af840d8660faa91b58d6eb2..dd2e568b62db017b042aa6ebf9c6dbd833be30c3 100644 (file)
@@ -47,6 +47,7 @@
 #include "alertpanel.h"
 #include "procheader.h"
 #include "customheader.h"
+#include "remotefolder.h"
 
 typedef enum
 {
@@ -355,7 +356,7 @@ void account_add(void)
                }
 
                folder->account = ac_prefs;
-               ac_prefs->folder = REMOTE_FOLDER(folder);
+               ac_prefs->folder = folder;
                folder_add(folder);
                if (ac_prefs->protocol == A_IMAP4)
                        folder->klass->create_tree(folder);
@@ -438,7 +439,7 @@ void account_set_missing_folder(void)
                        }
 
                        folder->account = ap;
-                       ap->folder = REMOTE_FOLDER(folder);
+                       ap->folder = folder;
                        folder_add(folder);
                        if (ap->protocol == A_IMAP4)
                                folder->klass->create_tree(folder);