diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2000-05-12 04:46:13 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-12 04:46:13 +0800 |
commit | cb13084bc24c04b16af88744f6eb67ae7f779018 (patch) | |
tree | caf9b9f3349d79de9adb45f0d54aadabae298ad0 /camel/camel-folder-summary.c | |
parent | d41602b8ecf24d2c99ce52a4f3fd1ed6a6300d34 (diff) | |
download | gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.tar.gz gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.tar.zst gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.zip |
> * providers/mbox/camel-mbox-folder.c (message_changed): Indicate
> the summary changed also.
>
> (camel_mbox_summary_update): Also save summary when done.
> (camel_mbox_summary_expunge): Unindex items when deleting them.
> (camel_mbox_summary_expunge): Save the index as well as the
> summary.
> (camel_folder_summary_touch): New function, indicate the summary
> info changed.
> (camel_folder_summary_remove): Dirty here.
svn path=/trunk/; revision=2994
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r-- | camel/camel-folder-summary.c | 11 |
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) |