aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r--camel/camel-folder-summary.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 854017daa9..6f80a62325 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -367,13 +367,15 @@ camel_folder_summary_save(CamelFolderSummary *s)
g_assert(s->summary_path);
- printf("saving summary?\n");
+ printf("saving summary? '%s'\n", s->summary_path);
if ((s->flags & CAMEL_SUMMARY_DIRTY) == 0) {
printf("nup\n");
return 0;
}
+ printf("yep\n");
+
fd = open(s->summary_path, O_RDWR|O_CREAT, 0600);
if (fd == -1)
return -1;
@@ -493,6 +495,12 @@ perform_content_info_free(CamelFolderSummary *s, CamelMessageContentInfo *ci)
}
void
+camel_folder_summary_touch(CamelFolderSummary *s)
+{
+ s->flags |= CAMEL_SUMMARY_DIRTY;
+}
+
+void
camel_folder_summary_clear(CamelFolderSummary *s)
{
int i;
@@ -526,6 +534,7 @@ void camel_folder_summary_remove(CamelFolderSummary *s, CamelMessageInfo *info)
if (s->build_content && ci) {
perform_content_info_free(s, ci);
}
+ s->flags |= CAMEL_SUMMARY_DIRTY;
}
void camel_folder_summary_remove_uid(CamelFolderSummary *s, const char *uid)