Visual RFC.
ALL RFCs / RFC 9051
Read the RFC ↗
RFC 9051 / MECHANISM GUIDE

Selective FETCH and SEARCH

03

A client can retrieve metadata or a selected body section instead of downloading every complete message.

RFC 9051 · § 6.4EXAMPLE
3 / 3
03
Fetch a body section

Download only the needed section rather than all messages.

Selective FETCH and SEARCHA client can retrieve metadata or a selected body section instead of downloading every complete message.Selective FETCH and SEARCHUID SEARCH UNSEENUID FETCH 105 (FLAGS ENVELOPE)UID FETCH 105 BODY.PEEK[1]Retrieve the needed section, not the whole mailbox

Key idea: FETCH can request specific data items and body sections.

Terms

Look up a term in the glossary ↗

Rules & examples
  • FETCH can request specific data items and body sections.
  • SEARCH selects messages by defined criteria.
  • Use UID commands when stable identities are required.

Examples are illustrative. Consult the linked RFC and its errata for implementation details.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

The envelope and the letter do different jobs.

Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 9051

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗