datatracker.ietf.org
Sign in
Version 5.4.0, 2014-04-22
Report a bug

Support for Internet Message Access Protocol (IMAP) Events in Sieve
RFC 6785

Internet Engineering Task Force (IETF)                          B. Leiba
Request for Comments: 6785                           Huawei Technologies
Updates: 5228                                              November 2012
Category: Standards Track
ISSN: 2070-1721

  Support for Internet Message Access Protocol (IMAP) Events in Sieve

Abstract

   Sieve defines an email filtering language that can, in principle,
   plug into any point in the processing of an email message.  As
   defined in the base specification, it plugs into mail delivery.  This
   document defines how Sieve can plug into points in IMAP where
   messages are created or changed, adding the option of user-defined or
   installation-defined filtering (or, with Sieve extensions, features
   such as notifications).  Because this requires future Sieve
   extensions to specify their interactions with this one, this document
   updates the base Sieve specification, RFC 5228.

Status of This Memo

   This is an Internet Standards Track document.

   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in Section 2 of RFC 5741.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   http://www.rfc-editor.org/info/rfc6785.

Leiba                        Standards Track                    [Page 1]
RFC 6785                  IMAP Events in Sieve             November 2012

Copyright Notice

   Copyright (c) 2012 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
   (http://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.

Table of Contents

   1. Introduction ....................................................3
      1.1. Overview ...................................................3
      1.2. Differences between IMAP Events and Mail Delivery ..........4
      1.3. Conventions Used in This Document ..........................5
   2. The "IMAP Events in Sieve" Extension ............................5
      2.1. The "imapsieve" Capability Strings .........................5
      2.2. Existing IMAP Functions Affected by IMAP Events in Sieve ...5
           2.2.1. The IMAP APPEND Command .............................6
           2.2.2. The IMAP COPY Command ...............................6
           2.2.3. Changes to IMAP Message Flags .......................6
           2.2.4. When Script Actions Set the \Deleted Flag ...........7
      2.3. New Functions Defined by IMAP Events in Sieve ..............7
           2.3.1. Interaction with Metadata ...........................7
   3. Applicable Sieve Actions and Interactions .......................8
      3.1. The Implicit Keep ..........................................9
      3.2. The "keep" Action ..........................................9
      3.3. The "fileinto" Action ......................................9
      3.4. The "redirect" Action ......................................9
      3.5. The "discard" Action ......................................10
      3.6. The "notify" Action .......................................10
      3.7. The "addheader" and "deleteheader" Actions ................10
      3.8. The "setflag", "deleteflag", and "removeflag" Actions .....11
      3.9. MIME Part Tests and Replacement ...........................11
      3.10. spamtest and virustest ...................................11
      3.11. Inapplicable Actions .....................................11
      3.12. Future Sieve Actions .....................................12

Leiba                        Standards Track                    [Page 2]
RFC 6785                  IMAP Events in Sieve             November 2012

   4. Interaction with Sieve Environment .............................12
      4.1. Base Sieve Environment Items: location and phase ..........12
      4.2. New Sieve Environment Items: imap.user and imap.email .....12
      4.3. New Sieve Environment Item: imap.cause ....................13

[include full document text]