return -1;
}
- snprintf (buf, sizeof (buf), "UID FETCH %d RFC822",
- HEADER_DATA(ctx->hdrs[msgno])->uid);
+ snprintf (buf, sizeof (buf), "UID FETCH %d %s",
+ HEADER_DATA(ctx->hdrs[msgno])->uid,
+ (mutt_bit_isset (idata->capabilities, IMAP4REV1) ?
+ (option (OPTIMAPPEEK) ? "BODY.PEEK[]" : "BODY[]") :
+ "RFC822"));
imap_cmd_start (idata, buf);
do
if (uid != HEADER_DATA(ctx->hdrs[msgno])->uid)
mutt_error (_("The message index is incorrect. Try reopening the mailbox."));
}
- else if (strncasecmp ("RFC822", pc, 6) == 0)
+ else if ((strncasecmp ("RFC822", pc, 6) == 0) ||
+ (strncasecmp ("BODY[]", pc, 6) == 0))
{
pc = imap_next_word (pc);
if (imap_get_literal_count(pc, &bytes) < 0)
** user/password pairs on mutt invocation, or if opening the connection
** is slow.
*/
+ { "imap_peek", DT_BOOL, R_NONE, OPTIMAPPEEK, 1 },
+ /*
+ ** .pp
+ ** If set, mutt will avoid implicitly marking your mail as read whenever
+ ** you fetch a message from the server. This is generally a good thing,
+ ** but can make closing an IMAP folder somewhat slower. This option
+ ** exists to appease spead freaks.
+ */
{ "imap_servernoise", DT_BOOL, R_NONE, OPTIMAPSERVERNOISE, 1 },
/*
** .pp