dovecot-1.0: BODY/BODYSTRUCTURE fetch: Don't crash if we already...

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 11 03:53:37 EET 2008


details:   http://hg.dovecot.org/dovecot-1.0/rev/538f8892a2f1
changeset: 5543:538f8892a2f1
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 11 03:53:33 2008 +0200
description:
BODY/BODYSTRUCTURE fetch: Don't crash if we already had message parts
parsed.

diffstat:

1 file changed, 2 insertions(+), 3 deletions(-)
src/lib-storage/index/index-mail.c |    5 ++---

diffs (15 lines):

diff -r 975d78cadc1e -r 538f8892a2f1 src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c	Sun Mar 09 12:50:15 2008 +0200
+++ b/src/lib-storage/index/index-mail.c	Tue Mar 11 03:53:33 2008 +0200
@@ -569,9 +569,8 @@ static void index_mail_parse_bodystructu
 			i_assert(data->parts->next == NULL);
 
 			old_offset = data->stream->v_offset;
-			i_stream_seek(data->stream,
-				      data->hdr_size.physical_size);
-			message_parse_from_parts(data->parts->children,
+			i_stream_seek(data->stream, 0);
+			message_parse_from_parts(data->parts,
 						data->stream,
 						parse_bodystructure_part_header,
 						mail->data_pool);


More information about the dovecot-cvs mailing list