From 9fcbc8f335c4322c6e4167e0356bfb9802e5edb6 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 24 Jul 2002 15:13:43 +0000 Subject: When writing the summary, use TRUNC flag, duh. Also, write to a temp file 2002-07-25 Not Zed * camel-folder-summary.c (camel_folder_summary_save): When writing the summary, use TRUNC flag, duh. Also, write to a temp file first, and rename when closed successfully, and check ferror() and fclose() against 0 rather than -1. * providers/local/camel-mbox-summary.c (summary_update): Decrement i if we remove the summary item so we dont skip every 2nd one. * camel-mime-utils.c (header_decode_mailbox): Use rfc2047_decode_word explicitly incase we just found an encoded word. Stops us re-decoding the string twice, which fixes memory corruption in #26330 when the HUGE string is used later. 2002-07-24 Not Zed * camel-partition-table.c (camel_key_table_next): Didn't unlock if we exited on an empty key list. svn path=/trunk/; revision=17570 --- camel/providers/local/camel-mbox-summary.c | 1 + 1 file changed, 1 insertion(+) (limited to 'camel/providers') diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 3c5222406e..e84875aad0 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -416,6 +416,7 @@ summary_update(CamelLocalSummary *cls, off_t offset, CamelFolderChangeInfo *chan camel_folder_change_info_remove_uid(changeinfo, camel_message_info_uid(mi)); camel_folder_summary_remove(s, mi); count--; + i--; } camel_folder_summary_info_free(s, mi); } -- cgit