&to_filter, &unfiltered,
TRUE);
+ filtering_move_and_copy_msgs(newmsg_list);
if (to_filter != NULL) {
- filtering_move_and_copy_msgs(to_filter);
for (elem = to_filter; elem; elem = g_slist_next(elem)) {
MsgInfo *msginfo = (MsgInfo *)elem->data;
procmsg_msginfo_free(msginfo);
}
if (!need_scan && FOLDER_TYPE(item->folder) == F_MH) {
- if (item->mtime == last_mtime)
- item->mtime = time(NULL);
+ if (item->mtime == last_mtime) {
+ mh_set_mtime(item);
+ }
}
g_free(cache_file);
/* here's an exception: Inbox subfolders are normal. */
if (item->parent_stype == -1 && cur->stype == F_INBOX
&& item != cur) {
- debug_print("set item %s parent type to %d "
- "even if %s is F_INBOX\n",
- item->path ? item->path : "(null)",
- 0, cur->path);
item->parent_stype = F_NORMAL;
break;
}
* well copy it instead of going up the full way */
if (cur->parent_stype != -1) {
item->parent_stype = cur->parent_stype;
- debug_print("set item %s parent type to %d "
- "from %s's parent type\n",
- item->path ? item->path : "(null)",
- cur->parent_stype ? cur->parent_stype : 0,
- cur->path ? cur->path : "(null)");
break;
}
/* we found a parent that has a special type. That's
* our parent type. */
if (cur->stype != F_NORMAL) {
- debug_print("set item %s parent type to %d "
- "from %s's type\n",
- item->path ? item->path : "(null)",
- cur->stype ? cur->stype : 0,
- cur->path ? cur->path : "(null)");
cur->parent_stype = cur->stype;
item->parent_stype = cur->stype;
break;
/* as we still didn't find anything, our parents must all be
* normal. */
if (item->parent_stype == -1) {
- debug_print("set item %s to 0 from default\n",
- item->path ? item->path : "(null)");
item->parent_stype = F_NORMAL;
}
}
return FALSE;
}
+
+gboolean folder_get_sort_type (Folder *folder,
+ FolderSortKey *sort_key,
+ FolderSortType *sort_type)
+{
+ if (!folder || !sort_key || !sort_type)
+ return FALSE;
+ if (folder->klass->get_sort_type == NULL)
+ return FALSE;
+ folder->klass->get_sort_type(folder, sort_key, sort_type);
+ return TRUE;
+}
+
#undef PUT_ESCAPE_STR