diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2000-05-02 11:32:23 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-02 11:32:23 +0800 |
commit | e3215000495de098a56e76be3c71eca7db4bd61d (patch) | |
tree | 35797009f7125ce707ebcf96bdd1d2062c885230 /camel/providers | |
parent | 0cb506a96abd31962280e8c1f4372c5163489a48 (diff) | |
download | gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar.gz gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.tar.zst gsoc2013-evolution-e3215000495de098a56e76be3c71eca7db4bd61d.zip |
Deleted messages properly get removed from the index.
A new folder signal for gui/etc's to track changes.
(camel_mbox_summary_expunge): Oops, my wrong, use the string uid
to unindex on.
(mbox_expunge): Emit a folder_changed signal on expunge (uh, even
if it didn't ...)
(camel_folder_class_init): Added a folder_changed signal.
svn path=/trunk/; revision=2745
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/mbox/camel-mbox-folder.c | 3 | ||||
-rw-r--r-- | camel/providers/mbox/camel-mbox-summary.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index 7e55610cf8..8c45d64fd7 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -260,6 +260,9 @@ mbox_expunge (CamelFolder *folder, CamelException *ex) camel_exception_setv (ex, CAMEL_EXCEPTION_FOLDER_INVALID, /* FIXME: right error code */ "Could not expunge: %s", strerror(errno)); } + + /* TODO: check it actually changed */ + gtk_signal_emit_by_name((GtkObject *)folder, "folder_changed", 0); } diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index b4b341fd40..754f211dfe 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -1429,10 +1429,7 @@ camel_mbox_summary_expunge(CamelMboxSummary *s) /* remove this message from the index */ if (s->index) { - char name[32]; - - sprintf(name, "%x", info->info.uid); - ibex_unindex(s->index, name); + ibex_unindex(s->index, info->info.uid); } camel_mbox_summary_remove_uid(s, info->info.uid); |