diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-12-10 21:01:30 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-12-10 21:01:30 +0000 |
commit | 7453757ea62e6b5f5c5ddfa5e602c49fe9d27a50 (patch) | |
tree | 46d12a53eb6969f254e73f978c07a7a2a8c64dd5 /imap | |
parent | a430df47aff19a5f945691ca90c5e72c202f9e29 (diff) |
Avoid implicit flag updates with IMAP. From Brendan Cully.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/message.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/imap/message.c b/imap/message.c index 3a317fe1..071b2e8d 100644 --- a/imap/message.c +++ b/imap/message.c @@ -245,8 +245,11 @@ int imap_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno) 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 @@ -272,7 +275,8 @@ int imap_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno) 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) |