Network Working Group J. Degener
Request for Comments: 3894 Sendmail, Inc.
Category: Standards Track October 2004
Sieve Extension: Copying Without Side Effects
1. Introduction
The Sieve scripting language [SIEVE] allows users to control handling and disposal of their incoming e-mail. Two frequently used Sieve commands are "fileinto" (saving into a local message store, such as an IMAP server) and "redirect" (forwarding to another e-mail address). Both of these cancel the Sieve default behavior of saving into the user's "inbox".
Degener Standards Track [Page 1]
RFC 3894 Sieve Extension - Copy Without Side Effects October 2004
fileinto "unfiltered"; keep;
2. Conventions used
Conventions for notations are as in [SIEVE] section 1.1, including use of [KEYWORDS] and "Syntax:" label for the definition of action and tagged arguments syntax.
3. ":copy" extension to the "fileinto" and "redirect" commands
Syntax:
Degener Standards Track [Page 2]
RFC 3894 Sieve Extension - Copy Without Side Effects October 2004
require ["copy", "fileinto"]; fileinto :copy "incoming";
4. Security Considerations
The "copy" extension makes it easier to eavesdrop on a user's message stream without the user noticing. This was technically possible before if an attacker gained read/write access to a user's Sieve scripts, but now an attacker no longer needs to parse a script in order to modify it. Write access to Sieve scripts must be protected as strongly as read/write access to e-mail, for example by using secure directory protocols such as correctly parameterized LDAP over TLS [LDAP].
5. IANA Considerations
The following template specifies the IANA registration of the "copy" Sieve extension specified in this document.
Degener Standards Track [Page 3]
RFC 3894 Sieve Extension - Copy Without Side Effects October 2004 6. AcknowledgmentsThanks to Eric Allman, Ned Freed, Will Lee, Nigel Swinson, and Rand Wacker for corrections and comments.
7. References 7.1. Normative References[KEYWORDS] Bradner, S., "Key words for use in RFCs to Indicate
7.2. Informative References
[LDAP] Wahl, M., Alvestrand, H., Hodges, J., and R. Morgan,
Degener Standards Track [Page 4]
RFC 3894 Sieve Extension - Copy Without Side Effects October 2004
Full Copyright Statement