Internet Engineering Task Force (IETF) S. Bosch
Request for Comments: 8514 Open Xchange Oy
Category: Standards Track January 2019
ISSN: 2070-1721
Internet Message Access Protocol (IMAP) - SAVEDATE Extension
Bosch Standards Track [Page 1]
RFC 8514 IMAP - SAVEDATE Extension January 2019
Table of Contents
1. Introduction
This document extends the Internet Message Access Protocol (IMAP) [IMAP4rev1] with a new capability called "SAVEDATE". This capability adds a new IMAP message attribute called "save date". The save date is the date and time at which a message was saved in the mailbox in which it currently resides. The save date is similar to the existing "internal date" attribute in that it is set at the time of delivery. However, the internal date attribute can be set to an arbitrary value for messages delivered to the mailbox using the APPEND command and is usually copied from the source message for messages delivered using the COPY command. In contrast, the save date attribute is always set to the current date and time at the moment the message is saved in the mailbox, irrespective of how the message is delivered and from where it originates.
Bosch Standards Track [Page 2]
RFC 8514 IMAP - SAVEDATE Extension January 2019
The SAVEDATE capability extends the FETCH command and response to allow retrieving the date and time at which a message was saved. Also, the SAVEDATE capability extends the SEARCH command to allow searching messages with criteria based on when they were saved in the mailbox.
2. Conventions Used in This Document
In 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. Save Date Message Attribute
The save date message attribute is the date and time at which the message was saved in the mailbox it is now located in. Unlike the internal date message attribute defined by [IMAP4rev1], this date and time value cannot be set arbitrarily when a message is delivered by the IMAP APPEND command. Also, when a message is delivered to the mailbox by the IMAP COPY command [IMAP4rev1] or the IMAP MOVE command [IMAP-MOVE], the save date attribute is not copied from the source message. Instead, the current date and time at which the message is delivered to a mailbox MUST be used to set the save date attribute. Once calculated, the save date attribute MUST NOT change as long as the message is contained within the same mailbox.
Bosch Standards Track [Page 3]
RFC 8514 IMAP - SAVEDATE Extension January 2019 4. IMAP Protocol Changes 4.1. CAPABILITY IdentificationIMAP servers that support this extension MUST include "SAVEDATE" in the response list to the CAPABILITY command.
4.2. FETCH Command and Response Extensions
This extension defines one new data item for the FETCH command:
4.3. SEARCH Command Extension
This extension defines four new search keys for the SEARCH command:
Bosch Standards Track [Page 4]
RFC 8514 IMAP - SAVEDATE Extension January 2019
SAVEDATESUPPORTED
5. Formal Syntax
The following syntax specification augments the grammar specified in [IMAP4rev1]. It uses the Augmented Backus-Naur Form (ABNF) notation as specified in [ABNF]. Elements not defined here are taken from [IMAP4rev1].
6. Security Considerations
There are no known additional security issues with this extension beyond those described in the base protocol described in [IMAP4rev1].
Bosch Standards Track [Page 5]
RFC 8514 IMAP - SAVEDATE Extension January 2019 7. IANA ConsiderationsIANA has added "SAVEDATE" to the "IMAP Capabilities" registry located at <https://www.iana.org/assignments/imap-capabilities>.
8. Normative References
[ABNF] Crocker, D. and P. Overell, "Augmented BNF for Syntax
Bosch Standards Track [Page 6]
RFC 8514 IMAP - SAVEDATE Extension January 2019
Acknowledgements