aboutsummaryrefslogtreecommitdiff
path: root/src/procmsg.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-04 09:49:16 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-04 09:49:16 +0000
commiteaf283c8b2479500cf99d8c80051e072970419c9 (patch)
treec25d610bb9d602f56ac9e34e2efb7e47a08c1215 /src/procmsg.c
parent539089cf036bca9aeb71b9bf1859ad68608b2cc8 (diff)
mark cache as dirty if open failed.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@397 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/procmsg.c')
-rw-r--r--src/procmsg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/procmsg.c b/src/procmsg.c
index 66ce9fe2..714788da 100644
--- a/src/procmsg.c
+++ b/src/procmsg.c
@@ -237,8 +237,10 @@ GSList *procmsg_read_cache(FolderItem *item, gboolean scan_file)
}
if ((fp = procmsg_open_cache_file_with_buffer
- (item, DATA_READ, file_buf, sizeof(file_buf))) == NULL)
+ (item, DATA_READ, file_buf, sizeof(file_buf))) == NULL) {
+ item->cache_dirty = TRUE;
return NULL;
+ }
debug_print("Reading summary cache...");