aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-mbox-folder.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-11-17 14:04:23 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-11-17 14:04:23 +0800
commita1ccc43fbe30d1e68a668accf9759a19edec2d96 (patch)
tree41a15d30db57f1ba10cc90df6090a7997eafe9fc /camel/providers/local/camel-mbox-folder.c
parent4db080e17f7f6637cf184a84d3e07a97b6e6904a (diff)
downloadgsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar
gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar.gz
gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar.bz2
gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar.lz
gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar.xz
gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar.zst
gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.zip
We should always terminate the string. No need to check outptr is in
2000-11-17 Not Zed <NotZed@HelixCode.com> * camel-stream-buffer.c (camel_stream_buffer_gets): We should always terminate the string. No need to check outptr is in range, its already been checked. * providers/local/camel-mbox-summary.c (mbox_summary_sync): When we update the summary, do it from mbox_summary->folder_size, not the content info endpos (which isn't any good anymore anyway). * providers/local/camel-mbox-folder.c (mbox_append_message): Set the frompos from the current folder size, since summary_add wont have initialised it to anything useful. svn path=/trunk/; revision=6597
Diffstat (limited to 'camel/providers/local/camel-mbox-folder.c')
-rw-r--r--camel/providers/local/camel-mbox-folder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/providers/local/camel-mbox-folder.c b/camel/providers/local/camel-mbox-folder.c
index d65ad54c01..cfffbf7c16 100644
--- a/camel/providers/local/camel-mbox-folder.c
+++ b/camel/providers/local/camel-mbox-folder.c
@@ -186,6 +186,9 @@ mbox_append_message(CamelFolder *folder, CamelMimeMessage * message, const Camel
if (camel_exception_is_set(ex))
goto fail;
+ /* and we need to set the frompos explicitly */
+ ((CamelMboxMessageInfo *)mi)->frompos = mbs->folder_size?mbs->folder_size+1:0;
+
d(printf("Appending message: uid is %s\n", mi->uid));
output_stream = camel_stream_fs_new_with_name(lf->folder_path, O_WRONLY|O_APPEND, 0600);