EXTRA | K. Murchison |
Internet-Draft | B. Gondwana |
Updates: 5230, 5435 (if approved) | FastMail |
Intended status: Standards Track | November 29, 2018 |
Expires: June 2, 2019 |
Sieve Extension: File Carbon Copy (Fcc)
draft-ietf-extra-sieve-fcc-07
The Sieve Email Filtering Language provides a number of action commands, some of which can generate additional messages on behalf of the user. This document defines an extension to such commands to allow a copy of any generated message to be filed into a target mailbox.
This document updates RFC5230 and RFC5435 by adding a new tagged argument to the "vacation" and "enotify" actions respectively.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on June 2, 2019.
Copyright (c) 2018 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
The Sieve Email Filtering Language provides a number of action commands, some of which can generate additional messages on behalf of the user. It is sometimes desirable for a Sieve user to maintain an archive of the messages generated by these commands.
This extension defines a new optional tagged argument ":fcc" to action commands which generate additional messages to allow a copy of the generated message to be filed into a target mailbox.
The capability string associated with this extension is "fcc".
Each action that generates additional messages will need to specify how it interfacts with :fcc. This document specifies the interaction of :fcc with the Vacation and Notify extensions.
Conventions for notations are as in Section 1.1 of [RFC5228], including use of the "Usage:" label for the definition of action and tagged arguments syntax.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
This document specifies a new optional tagged argument ":fcc" that alters the behavior of action commands which generate additional messages on behalf of the user.
Usage: :fcc <mailbox: string>
The :fcc tagged argument instructs the Sieve interpreter to file a copy of the generated message into the mailbox provided in the subsequent argument. The syntax and semantics of the mailbox argument MUST match those of the mailbox argument to the "fileinto" action specified in Section 4.1 of [RFC5228]. If the specified mailbox doesn't exist, the implementation MUST file the message into the user's main mailbox (e.g. IMAP "INBOX").
Some tagged arguments defined in extensions to the "fileinto" action can be used together with ":fcc". The sections below describe these interactions. Tagged arguments in future extensions to the "fileinto" action should describe their interaction with ":fcc", if any.
When any "fileinto" extension arguments are used with ":fcc", the corresponding extension MUST be enabled, and the arguments MUST have the same syntax and semantics as they do with "fileinto".
This document extends the definition of the ":flags" tagged argument (see Section 5 of [RFC5232]) so that it can optionally be used with the ":fcc" argument.
Usage: :fcc <mailbox: string> [:flags <list-of-flags: string-list>]
If the optional ":flags" argument is specified with ":fcc", it instructs the Sieve interpreter to set the IMAP4 flags provided in the subsequent argument when the generated message is filed into the target mailbox.
This document extends the definition of the ":create" tagged argument (see Section 3.2 of [RFC5490]) so that it can optionally be used with the ":fcc" argument.
Usage: :fcc <mailbox: string> [:create]
If the optional ":create" argument is specified with ":fcc", it instructs the Sieve interpreter to create the target mailbox, if needed, before attempting to file the generated message into the target mailbox.
This document extends the definition of the ":specialuse" tagged argument (see Section 4 of [I-D.ietf-extra-sieve-special-use]) so that it can optionally be used with the ":fcc" argument.
Usage: :fcc <mailbox: string> [:specialuse <special-use-flag: string>]
If the optional ":specialuse" argument is specified with ":fcc", it instructs the Sieve interpreter to check whether a mailbox exists with the specific special-use flag assigned to it. If such a mailbox exists, the generated message is filed into the special-use mailbox. Otherwise, the generated message is filed into the target mailbox.
If both the optional ":specialuse" and ":create" arguments are specified with ":fcc", the Sieve interpreter is instructed to create the target mailbox per Section 4.1 of [I-D.ietf-extra-sieve-special-use], if needed.
For convenience, the "FCC" syntax element is defined here using ABNF so that it can be augmented by other extensions.
FCC = ":fcc" string *FCC-OPTS FCC-OPTS = CREATE / IMAP-FLAGS / SPECIAL-USE ; each option MUST NOT appear more than once CREATE = ":create" IMAP-FLAGS = ":flags" string-list SPECIAL-USE = ":specialuse" string
Copies of messages filed into a mailbox via this extension are REQUIRED to be in Internet Message Format. Some messages generated by Sieve actions might already conform to this format and MAY be filed without modification. Messages generated in other formats MUST be encapsulated using constructs from [RFC5322] and MIME ([RFC2045], [RFC2046], [RFC2047], [RFC2231]).
The general requirements for encapsulating the copies of messages to be filed are the following:
This document extends the "vacation" action (see also "vacation-seconds") to optionally store a copy of the auto-reply messages into a target mailbox.
Usage: vacation [FCC] [":days" number | ":seconds" number] [":subject" string] [":from" string] [":addresses" string-list] [":mime"] [":handle" string] <reason: string>
Example (with fileinto extensions):
require ["vacation", "fcc", "mailbox", "special-use", "imap4flags"]; vacation :days 7 :from "hemingway@example.com" "Gone Fishin'" :fcc "INBOX.Sent" :flags ["\\Seen"] :specialuse "\\Sent" :create;
Vacation auto-reply messages are MIME-compliant and can be filed into the target mailbox without modification.
This document extends the "notify" action to optionally store a copy of the notification messages into a target mailbox.
Usage: notify [FCC] [":from" string] [":importance" <"1" / "2" / "3">] [":options" string-list] [":message" string] <method: string>
Example:
require ["enotify", "fcc"]; notify :fcc "INBOX.Sent" :message "You got mail!" "mailto:ken@example.com";
Messages generated using the "mailto" notification method are MIME-compliant and can be filed into the target mailbox without modification.
Messages generated by other notification methods (e.g. "xmpp") MUST be encapsulated per Section 4 before being filed. The body of the filed message MUST include the :message parameter and MAY include one or more of the :from, :importance, or :options parameters. The MIME-type(s) of the body part(s) used to encapsulate the parameters is an implementation decision.
An implementation MAY only support :fcc in conjunction with a subset of the notification methods it supports. An error occurs if :fcc is combined with a notification method that doesn't support it. Notification methods that support :fcc can be discovered at run-time using the mechanism described below.
This document defines a new notification-capability value "fcc" for use with the notify_method_capability test (see Section 5 of [RFC5435]. For the "fcc" notification-capability, the notify_method_capability test can match one of the following key-list values:
Note that the "fcc" notify_method_capability test does not require the notification-uri argument to specify anything other than a scheme.
Example:
require ["enotify", "fcc"]; if notify_method_capability "xmpp:" "fcc" "yes" { notify :fcc "INBOX.Sent" :message "You got mail" "xmpp:ken@example.com?message;subject=SIEVE"; } else { notify :fcc "INBOX.Sent" :message "You got mail!" "mailto:ken@example.com"; }
The "fcc" extension is not compatible with any Sieve action that does not generate an additional message on behalf of the user. It is an error for a script to use the ":fcc" tagged argument with any such action.
Future extensions that define actions that generate additional messages on behalf of the user should describe their compatibility with ":fcc", and how to MIME-encapsulate the message, if required.
< RFC Editor: before publication please remove this section and the reference to [RFC7942] >
This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.
According to [RFC7942], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit".
The open source Cyrus Server project is a highly scalable enterprise mail system which supports Sieve email filtering at the point of final delivery. This production level Sieve implementation supports all of the requirements described in this document. This implementation is freely distributable under a BSD style license from Computing Services at Carnegie Mellon University.
The Oracle Communications Messaging Server is a highly scalable, reliable, and available messaging platform. This production level product supports the :fcc extension in conjunction with both the notify and vacation extensions. The implementation meets all the requirements given in this document. The product also supports the imap4flags extension so the :flags may be used in conjunction :fcc.
The "fcc" extension does not raise any other security considerations that are not already present in [RFC5228], [RFC5230], [RFC5435], and [RFC6131].
The authors would like to thank the following individuals for contributing their ideas and support for writing this specification: Ned Freed, Stan Kalisch, and Alexey Melnikov.
[RFC5436] | Leiba, B. and M. Haardt, "Sieve Notification Mechanism: mailto", RFC 5436, DOI 10.17487/RFC5436, January 2009. |
[RFC5437] | Saint-Andre, P. and A. Melnikov, "Sieve Notification Mechanism: Extensible Messaging and Presence Protocol (XMPP)", RFC 5437, DOI 10.17487/RFC5437, January 2009. |
[RFC6131] | George, R. and B. Leiba, "Sieve Vacation Extension: "Seconds" Parameter", RFC 6131, DOI 10.17487/RFC6131, July 2011. |
[RFC7942] | Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, July 2016. |
Changes since draft-ietf-extra-sieve-fcc-06:
Changes since draft-ietf-extra-sieve-fcc-05:
Changes since draft-ietf-extra-sieve-fcc-04:
Changes since draft-ietf-extra-sieve-fcc-03:
Changes since draft-ietf-extra-sieve-fcc-02:
Changes since draft-ietf-extra-sieve-fcc-01:
Changes since draft-ietf-extra-sieve-fcc-00: