2006-12-06 [colin] 2.6.1cvs6
[claws.git] / src / folderview.c
index 52e2453ef5957e5d4c7a379182fd6c2f37bd6e07..2a1e0c1b28e965115c9ff38c273fb6a36288075e 100644 (file)
@@ -1168,10 +1168,16 @@ gint folderview_check_new(Folder *folder)
                             item->opened == TRUE ||
                             item->processing_pending == TRUE)) {
                                if (folder_item_scan(item) < 0) {
-                                       summaryview_unlock(folderview->summaryview, item);
-                                       if (folder && !FOLDER_IS_LOCAL(folder)) {
-                                               STATUSBAR_POP(folderview->mainwin);
-                                               break;
+                                       if (folder) {
+                                               summaryview_unlock(folderview->summaryview, item);
+                                               if (FOLDER_TYPE(item->folder) == F_NEWS || FOLDER_IS_LOCAL(folder)) {
+                                                       log_error(_("Couldn't scan folder %s\n"),
+                                                               item->path ? item->path:item->name);
+                                                       continue;
+                                               } else if (!FOLDER_IS_LOCAL(folder)) {
+                                                       STATUSBAR_POP(folderview->mainwin);
+                                                       break;
+                                               }
                                        }
                                }
                        } else if (!item->folder->klass->scan_required) {