Internet Engineering Task Force (IETF) S. Bosch
Request for Comments: 8438 Dovecot Oy
Category: Standards Track August 2018
ISSN: 2070-1721
IMAP Extension for STATUS=SIZE
Bosch Standards Track [Page 1]
RFC 8438 IMAP STATUS=SIZE Extension August 2018
Table of Contents
1. Introduction
This document extends the Internet Message Access Protocol (IMAP) [IMAP4rev1] with a new capability called "STATUS=SIZE". To determine the total storage size of a mailbox, an IMAP client currently needs to retrieve all message sizes individually using the FETCH command with the RFC822.SIZE data item. The STATUS=SIZE capability provides a more efficient means of achieving this. It extends the STATUS command with a new "SIZE" data item, which indicates the total size of all messages in the target mailbox. This way, this information can be queried with just one STATUS command. When the LIST-STATUS IMAP capability [LIST-STATUS] is also available, the SIZE data item can be queried for many mailboxes at once using just one LIST command.
Bosch Standards Track [Page 2]
RFC 8438 IMAP STATUS=SIZE Extension August 2018 2. Conventions Used in This DocumentIn examples, "C:" indicates lines sent by a client that is connected to a server. "S:" indicates lines sent by the server to the client.
3. STATUS Command and Response Extensions
This extension defines one new status data item for the STATUS command and response:
Bosch Standards Track [Page 3]
RFC 8438 IMAP STATUS=SIZE Extension August 2018
C: A02 SELECT "frop" S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) S: * 8 EXISTS S: * 1 RECENT S: * OK [UNSEEN 7] First unseen. S: * OK [UIDVALIDITY 1364851417] UIDs valid S: * OK [UIDNEXT 242344] Predicted next UID S: * OK [HIGHESTMODSEQ 3914] Highest S: A02 OK [READ-WRITE] Select completed. C: A03 FETCH 1:* (RFC822.SIZE) S: * 1 FETCH (RFC822.SIZE 3224) S: * 2 FETCH (RFC822.SIZE 1222) S: * 3 FETCH (RFC822.SIZE 444) S: * 4 FETCH (RFC822.SIZE 4516) S: * 5 FETCH (RFC822.SIZE 544) S: * 6 FETCH (RFC822.SIZE 922) S: * 7 FETCH (RFC822.SIZE 31126) S: * 8 FETCH (RFC822.SIZE 2423) S: A03 OK Fetch completed.
Bosch Standards Track [Page 4]
RFC 8438 IMAP STATUS=SIZE Extension August 2018 4. Formal SyntaxThe following syntax specification augments the grammar specified in [IMAP4rev1] and [IMAP4-ABNF]. It uses the Augmented Backus-Naur Form (ABNF) notation as specified in [ABNF]. Elements not defined here are taken from [IMAP4rev1] and [IMAP4-ABNF].
5. Security Considerations
There are no known additional security issues with this extension beyond those described for the base protocol [IMAP4rev1] and the LIST-STATUS extension [LIST-STATUS].
6. IANA Considerations
IANA has added "STATUS=SIZE" to the "IMAP Capabilities" registry located at <http://www.iana.org/assignments/imap-capabilities>.
7. Normative References
[ABNF] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
Bosch Standards Track [Page 5]
RFC 8438 IMAP STATUS=SIZE Extension August 2018
[KEYWORDS] Bradner, S., "Key words for use in RFCs to Indicate