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/providers/mbox/camel-mbox-folder.c | |
parent | d41602b8ecf24d2c99ce52a4f3fd1ed6a6300d34 (diff) | |
download | gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.tar gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.tar.gz gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.tar.bz2 gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.tar.lz gsoc2013-evolution-cb13084bc24c04b16af88744f6eb67ae7f779018.tar.xz 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/providers/mbox/camel-mbox-folder.c')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index 05d00c608e..3403271e40 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -745,6 +745,7 @@ mbox_append_message (CamelFolder *folder, CamelMimeMessage *message, CamelExcept filter_from = (CamelMimeFilter *)camel_mime_filter_from_new(); camel_stream_filter_add((CamelStreamFilter *)filter_stream, filter_from); camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), filter_stream, ex); +#warning "we still need stream_close() for this" if (!camel_exception_is_set (ex)) camel_stream_flush (filter_stream, ex); @@ -833,9 +834,10 @@ message_changed(CamelMimeMessage *m, int type, CamelMboxFolder *mf) switch (type) { case MESSAGE_FLAGS_CHANGED: info = camel_folder_summary_uid((CamelFolderSummary *)mf->summary, m->message_uid); - if (info) + if (info) { info->flags = m->flags | CAMEL_MESSAGE_FOLDER_FLAGGED; - else + camel_folder_summary_touch((CamelFolderSummary *)mf->summary); + } else g_warning("Message changed event on message not in summary: %s", m->message_uid); break; default: |