From 1a5970086d59b3d3b2a8b45b3fa93ec4c0f723a6 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 1 Sep 1998 06:54:53 +0000 Subject: [PATCH] IMAP fixes from Nathan Neulinger. (<19980831170941.A7327@umr.edu> on mutt-dev.) --- imap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.50.1