#include "scoring.h"
#include "prefs_folder_item.h"
#include "procheader.h"
-#include "statusbar.h"
#include "hooks.h"
+#include "log.h"
/* Dependecies to be removed ?! */
#include "prefs_common.h"
MsgInfo * msginfo;
cnt++;
if (cnt%500)
- statusbar_print_all(_("Moving %s to %s (%d%%)..."), src->name,
+ log_message(_("Moving %s to %s (%d%%)...\n"), src->name,
new_item->path,
100*cnt/g_slist_length(mlist));
msginfo = (MsgInfo *) cur->data;
folder_item_move_msg(new_item, msginfo);
- if (cnt%500)
- statusbar_pop_all();
procmsg_msginfo_free(msginfo);
}
source.item = item;
source.content_change = contentchange;
- hooks_invoke("folder_item_update", &source);
+ hooks_invoke(FOLDER_ITEM_UPDATE_HOOKLIST, &source);
}
static void folder_update_item_func(FolderItem *item, gpointer contentchange)
if (item->need_update) {
source.item = item;
source.content_change = GPOINTER_TO_INT(contentchange);
- hooks_invoke("folder_item_update", &source);
+ hooks_invoke(FOLDER_ITEM_UPDATE_HOOKLIST, &source);
item->need_update = FALSE;
}
source.item = item;
source.content_change = update_summary;
- hooks_invoke("folder_item_update", &source);
+ hooks_invoke(FOLDER_ITEM_UPDATE_HOOKLIST, &source);
while (node != NULL) {
if (node && node->data) {
FolderItem *next_item = (FolderItem*) node->data;
source.item = next_item;
source.content_change = update_summary;
- hooks_invoke("folder_item_update", &source);
+ hooks_invoke(FOLDER_ITEM_UPDATE_HOOKLIST, &source);
}
node = node->next;
}