dovecot: Another fix to returning body blocks.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Dec 3 11:02:49 EET 2007
details: http://hg.dovecot.org/dovecot/rev/275d22eb25ba
changeset: 6904:275d22eb25ba
user: Timo Sirainen <tss at iki.fi>
date: Mon Dec 03 11:02:44 2007 +0200
description:
Another fix to returning body blocks.
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/lib-mail/message-parser.c | 6 ++++--
diffs (17 lines):
diff -r a8d3513b54c5 -r 275d22eb25ba src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c Mon Dec 03 10:23:06 2007 +0200
+++ b/src/lib-mail/message-parser.c Mon Dec 03 11:02:44 2007 +0200
@@ -383,9 +383,11 @@ static int parse_next_body_to_boundary(s
/* leave CR+LF + last line to buffer */
block_r->size = boundary_start;
}
- if (block_r->size != 0)
+ if (block_r->size != 0) {
parse_body_add_block(ctx, block_r);
- return ret <= 0 || block_r->size != 0 ? ret :
+ return 1;
+ }
+ return ret <= 0 ? ret :
parse_part_finish(ctx, boundary, block_r, FALSE);
}
More information about the dovecot-cvs
mailing list