Re: [Extra] Sieve Vacation question

Ned Freed <ned.freed@mrochek.com> Tue, 31 March 2020 19:54 UTC

Return-Path: <ned.freed@mrochek.com>
X-Original-To: extra@ietfa.amsl.com
Delivered-To: extra@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D7CB53A2AAC for <extra@ietfa.amsl.com>; Tue, 31 Mar 2020 12:54:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.2
X-Spam-Level:
X-Spam-Status: No, score=-0.2 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mrochek.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lwIh_0xh_Y5Z for <extra@ietfa.amsl.com>; Tue, 31 Mar 2020 12:54:19 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [98.153.82.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D3FF3A2A96 for <extra@ietf.org>; Tue, 31 Mar 2020 12:54:19 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01RJ5KSUJKSG005D48@mauve.mrochek.com> for extra@ietf.org; Tue, 31 Mar 2020 12:49:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mrochek.com; s=201712; t=1585684156; bh=JJA+8i8sH8D0qO2jbtL0u74r0bTWOxZvtgiesBys+hE=; h=Cc:Date:From:Subject:In-reply-to:References:To:From; b=NTBv4qqjuAGdVc8HUnW/dFaZ7yWPFZSSU2WB5WhDy4KZ7jNNyeYRH+oDz5VRgQ5Bt lWZA2HG4qHk/OrBFmr357lcUYYTwHdBylkQL0Z6BIQxG8xf9UdVGfCSTrxfOfTaLw2 knCzwu+Myyna3FVC93lhRN7xidfMUFYgfvVLdqX8=
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: TEXT/PLAIN; CHARSET=us-ascii; format=flowed
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01RIHLDFQH34000058@mauve.mrochek.com>; Tue, 31 Mar 2020 12:49:13 -0700 (PDT)
Cc: extra@ietf.org
Message-id: <01RJ5KSSZ2FA000058@mauve.mrochek.com>
Date: Tue, 31 Mar 2020 12:45:09 -0700 (PDT)
From: Ned Freed <ned.freed@mrochek.com>
In-reply-to: "Your message dated Tue, 31 Mar 2020 15:28:15 -0400" <f53622e3-aba8-5c0d-b601-0709aa3c12e2@fastmail.com>
References: <f53622e3-aba8-5c0d-b601-0709aa3c12e2@fastmail.com>
To: Ken Murchison <murch@fastmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/Es6X2gzMpX_lLUptBDuhppQkixw>
Subject: Re: [Extra] Sieve Vacation question
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <extra.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/extra>, <mailto:extra-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/extra/>
List-Post: <mailto:extra@ietf.org>
List-Help: <mailto:extra-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/extra>, <mailto:extra-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Mar 2020 19:54:22 -0000

I don't see anything in there saying to insert an extra entity level, so
no, there's no wrapping involved.

And as a practical matter, if you wrap the supplied example in either
a multipart/something or a message/rfc822, it's not going to work
correctly in some clients. 

				Ned

P.S. The reason it limits things to "MIME entity" is that way you can't specify
message headers, only MIME stuff, using this mechanism. 

> All,

> Reading and re-reading Section 4.4 of RFC5230, I'm not sure if the :mime
> data is supposed to be inserted into the response message as-is (after
> To, From, Date, Subject, etc), or if it needs to be wrapped in another
> MIME entity.

> In other words, is the complete outgoing message simply:


> To: foo@example.org
> From: bar@example.net
> Subject: Automated Reply
> Date: Tue, 31 Mar 2020 15:00:00 -0400
> Auto-Submitted: auto-replied (vacation)
> Content-Type: multipart/alternative; boundary=foo

> --foo

> I'm at the beach relaxing.  Mmmm, surf...

> --foo
> Content-Type: text/html; charset=us-ascii

> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
>   "http://www.w3.org/TR/REC-html40/strict.dtd">
> <HTML><HEAD><TITLE>How to relax</TITLE>
> <BASE HREF="http://home.example.com/pictures/"></HEAD>
> <BODY><P>I'm at the <A HREF="beach.gif">beach</A> relaxing.
> Mmmm, <A HREF="ocean.gif">surf</A>...
> </BODY></HTML>

> --foo--


> --
> Ken Murchison
> Cyrus Development Team
> Fastmail US LLC