Mercurial > dovecot > core-2.2
changeset 212:4327b1266604 HEAD
message/rfc822 mime parts weren't parsed correctly
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 10 Sep 2002 06:06:46 +0300 |
parents | 9ee27ef24ab8 |
children | 2a2ab4994b8a |
files | src/lib-mail/message-parser.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-mail/message-parser.c Tue Sep 10 05:58:48 2002 +0300 +++ b/src/lib-mail/message-parser.c Tue Sep 10 06:06:46 2002 +0300 @@ -54,6 +54,12 @@ part = p_new(pool, MessagePart, 1); part->parent = parent; + /* set child position */ + part->physical_pos = + parent->physical_pos + + parent->body_size.physical_size + + parent->header_size.physical_size; + list = &part->parent->children; while (*list != NULL) list = &(*list)->next; @@ -159,12 +165,6 @@ /* new child */ part = message_part_append(parse_ctx->pool, parent_part); - /* set child position */ - part->physical_pos = - parent_part->physical_pos + - parent_part->body_size.physical_size + - parent_part->header_size.physical_size; - parse_ctx->part = part; next_part = message_parse_part(inbuf, parse_ctx);