** See bug #52891.
2004-01-15 Not Zed <NotZed@Ximian.com> ** See bug #52891. * em-format-html.c (em_format_html_get_type): protect against http cache not being able to be created. svn path=/trunk/; revision=24236
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
2004-01-15 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
** See bug #52891.
|
||||
|
||||
* em-format-html.c (em_format_html_get_type): protect against http
|
||||
cache not being able to be created.
|
||||
|
||||
** See bug #52878.
|
||||
|
||||
* em-folder-view.c (emfv_finalise): unhook message_changed too.
|
||||
|
||||
@ -231,8 +231,10 @@ em_format_html_get_type(void)
|
||||
path = alloca(strlen(base_directory)+16);
|
||||
sprintf(path, "%s/cache", base_directory);
|
||||
emfh_http_cache = camel_data_cache_new(path, 0, NULL);
|
||||
camel_data_cache_set_expire_age(emfh_http_cache, 24*60*60);
|
||||
camel_data_cache_set_expire_access(emfh_http_cache, 2*60*60);
|
||||
if (emfh_http_cache) {
|
||||
camel_data_cache_set_expire_age(emfh_http_cache, 24*60*60);
|
||||
camel_data_cache_set_expire_access(emfh_http_cache, 2*60*60);
|
||||
}
|
||||
}
|
||||
|
||||
return type;
|
||||
|
||||
Reference in New Issue
Block a user