aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index bcade8d39e..dfad74626d 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -615,7 +615,17 @@ got_folder (char *uri, CamelFolder *folder, void *data)
if (folder) {
*fp = folder;
- camel_object_ref (CAMEL_OBJECT (folder));
+
+ camel_object_ref(CAMEL_OBJECT (folder));
+
+ /* emit a changed event, this is a little hack so that the folderinfo cache
+ will update knowing whether this is the outbox_folder or not, etc */
+ if (folder == outbox_folder) {
+ CamelFolderChangeInfo *changes = camel_folder_change_info_new();
+
+ camel_object_trigger_event((CamelObject *)folder, "folder_changed", changes);
+ camel_folder_change_info_free(changes);
+ }
}
}