aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index 7af149fba5..3778a5f5f4 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -1894,8 +1894,18 @@ emfb_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri)
if (folder) {
char *sstate;
int state;
+ gboolean safe;
GConfClient *gconf = mail_config_get_gconf_client();
+ safe = gconf_client_get_bool (gconf, "/apps/evolution/mail/display/safe_list", NULL);
+ if (safe) {
+ if (camel_object_meta_set(emfv->folder, "evolution:show_preview", "0") &&
+ camel_object_meta_set(emfv->folder, "evolution:selected_uid", NULL)) {
+ camel_object_state_write(emfv->folder);
+ }
+ gconf_client_set_bool (gconf, "/apps/evolution/mail/display/safe_list", FALSE, NULL);
+ }
+
mail_refresh_folder(folder, NULL, NULL);
emfb->priv->folder_changed_id = camel_object_hook_event(folder, "folder_changed",