Mercurial > dovecot > core-2.2
diff src/imap/imap-fetch-body.c @ 14888:cf79ab812651
imap_msgpart_parse() doesn't really need a mailbox parameter.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 13 Aug 2012 02:41:08 +0300 |
parents | 0c73a42c194e |
children | 00be97a2139a |
line wrap: on
line diff
--- a/src/imap/imap-fetch-body.c Mon Aug 13 01:47:54 2012 +0300 +++ b/src/imap/imap-fetch-body.c Mon Aug 13 02:41:08 2012 +0300 @@ -312,8 +312,7 @@ body->section, p); p++; } - if (imap_msgpart_parse(ctx->fetch_ctx->box, body->section, - &body->msgpart) < 0) { + if (imap_msgpart_parse(body->section, &body->msgpart) < 0) { ctx->error = "Invalid BODY[..] section"; return -1; } @@ -383,8 +382,7 @@ body->section, p); p++; } - if (imap_msgpart_parse(ctx->fetch_ctx->box, body->section, - &body->msgpart) < 0) { + if (imap_msgpart_parse(body->section, &body->msgpart) < 0) { ctx->error = "Invalid BINARY[..] section"; return -1; }