Network Working Group                                        A. Melnikov
Internet-Draft                                             Isode Limited
Intended status: Standards Track                                  Q. Sun
Expires: December 26, 2010                           Huawei Technologies
                                                           June 24, 2010


        Sieve Extension for converting messages before delivery
                      draft-ietf-sieve-convert-00

Abstract

   This document describes how Lemonade CONVERT can be used to transform
   messages before final delivery.

Status of this Memo

   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 http://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 December 26, 2010.

Copyright Notice

   Copyright (c) 2010 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.





Melnikov & Sun          Expires December 26, 2010               [Page 1]


Internet-Draft                Sieve CONVERT                    June 2010


Table of Contents

   1.  Conventions Used in this Document . . . . . . . . . . . . . . . 3

   2.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . 3

   3.  :converted tagged argument to the 'fileinto' action . . . . . . 3

   4.  Examples  . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

   5.  Security Considerations . . . . . . . . . . . . . . . . . . . . 4

   6.  IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 4

   7.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . 4

   8.  Normative References  . . . . . . . . . . . . . . . . . . . . . 4

       Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . 5
































Melnikov & Sun          Expires December 26, 2010               [Page 2]


Internet-Draft                Sieve CONVERT                    June 2010


1.  Conventions Used in this Document

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in RFC 2119 [RFC2119].

   Conventions for notations are as in [SIEVE] section 1.1, including
   the use of [ABNF].


2.  Introduction

   The [CONVERT] extension adds an IMAP command for performing client
   controlled conversions on whole messages or their body parts.  This
   document defines a similar extension to the SIEVE [SIEVE] mail
   filtering language, which reuses conversion parameters and framework
   established by [CONVERT].


3.  :converted tagged argument to the 'fileinto' action

   Usage:  :converted <quoted-from-mime-type: string>
           <quoted-to-mime-type: string>
           <transcoding-params: string-list>

   The :converted tag specifies that all body parts with "quoted-from-
   mime-type" MIME type should be converted to "quoted-to-mime-type"
   MIME type using conversion parameters specified in "transcoding-
   params".  Each conversion parameter value has the following syntax:
   "<transcoding-param>=<transcoding-param-value>", where <transcoding-
   param> and <transcoding-param-value> are defined in [CONVERT].
   Messages which don't have any body part with the "quoted-from-mime-
   type" MIME type are not affected by the conversion.

   [[anchor3: Should there be a way to specify/restrict which specific
   body parts need to be converted (e.g. only the second body part)?
   Should there be a way to specify multiple conversions (on different
   body parts of the same message)?]]

   [[anchor4: Interaction with MIME Loops (e.g. if :converted is
   applicable to the replace action) should be specified.]]


4.  Examples

   In the following examples all "image/tiff" body parts of the message
   are converted to "image/jpeg" with image resolution of 320x480
   pixels.



Melnikov & Sun          Expires December 26, 2010               [Page 3]


Internet-Draft                Sieve CONVERT                    June 2010


       require ["fileinto", "convert"];

       fileinto :converted "image/tiff" "image/jpeg" "pix-x" "320"
                "pix-y" "480" "INBOX";

   Messages which don't have image/tiff body parts are delivered to
   INBOX as is.


5.  Security Considerations

   [[anchor6: TBD]]


6.  IANA Considerations

   IANA is requested to add the following registrations to the list of
   Sieve extensions:

   Capability name:  convert
   Description:  adds a new tag to the fileinto action that enables
      Sieve script to perform a conversion on the message being
      delivered.
   RFC number:  this RFC
   Contact address:  The Sieve discussion list
      <ietf-mta-filters@imc.org>


7.  Acknowledgements

   [[anchor9: TBD]].


8.  Normative References

   [ABNF]     Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
              Specifications: ABNF", RFC 5234, January 2008.

   [CONVERT]  Melnikov, A., Ed. and P. Coates, Ed., "Internet Message
              Access Protocol - CONVERT Extension", RFC 5259, July 2008.

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", RFC 2119, BCP 14, March 1997.

   [SIEVE]    Guenther, P., Ed. and T. Showalter, Ed., "Sieve: An Email
              Filtering Language", RFC 5228, January 2008.





Melnikov & Sun          Expires December 26, 2010               [Page 4]


Internet-Draft                Sieve CONVERT                    June 2010


Authors' Addresses

   Alexey Melnikov
   Isode Limited
   5 Castle Business Village
   36 Station Road
   Hampton, Middlesex  TW12 2BX
   UK

   Email: Alexey.Melnikov@isode.com
   URI:   http://www.melnikov.ca/


   Qian Sun
   Huawei Technologies
   Bantian Longgang
   Shenzhen, Guandong  518129
   P.R China

   Phone: +86 755 28780808
   Email: sunqian@huawei.com






























Melnikov & Sun          Expires December 26, 2010               [Page 5]