From b54a0e18c34a983b27122c89e0c9df6005443b20 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 28 Mar 2000 03:56:06 +0000 Subject: uncomment the call to unlink the temp file: there's no way to tell * providers/mbox/camel-mbox-folder.c (_append_message): uncomment the call to unlink the temp file: there's no way to tell camel_stream_fs to truncate a file, so reusing the same file was resulting in junk at the ends of messages. svn path=/trunk/; revision=2206 --- camel/ChangeLog | 5 +++++ camel/providers/mbox/camel-mbox-folder.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 3d6877ee11..4ce430fe5f 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,10 @@ 2000-03-27 Dan Winship + * providers/mbox/camel-mbox-folder.c (_append_message): uncomment + the call to unlink the temp file: there's no way to tell + camel_stream_fs to truncate a file, so reusing the same file was + resulting in junk at the ends of messages. + * camel-folder.[ch]: add delete_message_by_{number,uid}. * providers/pop3/camel-pop3-folder.[ch]: implement diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c index faf6bd57cd..2dbbc32a86 100644 --- a/camel/providers/mbox/camel-mbox-folder.c +++ b/camel/providers/mbox/camel-mbox-folder.c @@ -946,7 +946,7 @@ _append_message (CamelFolder *folder, CamelMimeMessage *message, CamelException close (fd2); /* remove the temporary file */ - //unlink (tmp_message_filename); + unlink (tmp_message_filename); g_free (tmp_message_filename); CAMEL_LOG_FULL_DEBUG ("Leaving CamelMboxFolder::append_message\n"); -- cgit