From: Thomas Roessler Date: Tue, 1 Sep 1998 06:54:53 +0000 (+0000) Subject: IMAP fixes from Nathan Neulinger. X-Git-Tag: mutt-0-94-5i-rel~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a5970086d59b3d3b2a8b45b3fa93ec4c0f723a6;p=mutt IMAP fixes from Nathan Neulinger. (<19980831170941.A7327@umr.edu> on mutt-dev.) --- diff --git a/imap.c b/imap.c index 98419de5..d7aa2d3e 100644 --- a/imap.c +++ b/imap.c @@ -912,7 +912,9 @@ int imap_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno) * header is. We must set it now, or mutt will not display * the message properly */ - ctx->hdrs[msgno]->content->offset=ftell(msg->fp); + ctx->hdrs[msgno]->content->offset = ftell(msg->fp); + ctx->hdrs[msgno]->content->length = bytes - + ctx->hdrs[msgno]->content->offset; onbody=1; } } @@ -924,10 +926,10 @@ int imap_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno) while (strncmp (buf, seq, SEQLEN) != 0) ; + mutt_clear_error(); + if (!imap_code (buf)) - { return (-1); - } return 0; }