Re: [sieve] Late breaing issue in draft-freed-sieve-in-xml-06.txt

Robert Burrell Donkin <robertburrelldonkin@gmail.com> Fri, 04 September 2009 11:03 UTC

Return-Path: <robertburrelldonkin@gmail.com>
X-Original-To: sieve@core3.amsl.com
Delivered-To: sieve@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6216C3A6812 for <sieve@core3.amsl.com>; Fri, 4 Sep 2009 04:03:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.858
X-Spam-Level:
X-Spam-Status: No, score=-2.858 tagged_above=-999 required=5 tests=[AWL=-0.259, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zxkPbatdfpfY for <sieve@core3.amsl.com>; Fri, 4 Sep 2009 04:03:25 -0700 (PDT)
Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by core3.amsl.com (Postfix) with ESMTP id 0D1C33A67E2 for <sieve@ietf.org>; Fri, 4 Sep 2009 04:03:24 -0700 (PDT)
Received: by bwz19 with SMTP id 19so165914bwz.37 for <sieve@ietf.org>; Fri, 04 Sep 2009 04:00:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UNnz/3gv/19Jt8Nf+ReUl/uwBSC/Clnbg55FONWce3Y=; b=Z4iLiOwxPzicqorHsvR5bLpDgWl5QS29r10pWEUwgSRlDkyEGJLSeFofiyqK/I82RO p4rEh1UzNED8D6dOggS28vGui5X9EhYAM0zzQqOumKWfH3Uk2xUO57RzGyA9W99uiTHT G9n2ufm8wtHUeg1slqkA6qMUIf7lU5/fp4Au0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=V6rWrWTFFPd1LNihZ1F1/xZRDM5jceN01oTx3rPDY3tVAsTsd0Tcfvl5v7KCcjR6jZ F5Hk0vCUKFTMhAuxq5XHaRg8JsFVW/Nm/Cv6YUgQiJiE1NjPVSmetkjR20hV2v5kASzr 3HqluhJ1ZuM5JBokpvCEOwsh/CZp+CpvR7Lbc=
MIME-Version: 1.0
Received: by 10.204.19.145 with SMTP id a17mr8951003bkb.64.1252061573336; Fri, 04 Sep 2009 03:52:53 -0700 (PDT)
In-Reply-To: <1756CDFB-1597-49A6-BBD8-0BD883432938@serendipity.cx>
References: <01NCQPIXFUZ0001ML6@mauve.mrochek.com> <6c9fcc2a0908261957l4bd1cbcbq3fcd4d752807dec@mail.gmail.com> <1756CDFB-1597-49A6-BBD8-0BD883432938@serendipity.cx>
Date: Fri, 04 Sep 2009 11:52:53 +0100
Message-ID: <f470f68e0909040352t3ed588c9tce2f1be030af4cee@mail.gmail.com>
From: Robert Burrell Donkin <robertburrelldonkin@gmail.com>
To: Aaron Stone <aaron@serendipity.cx>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: Ned Freed <ned.freed@mrochek.com>, "barryleiba@computer.org" <barryleiba@computer.org>, "sieve@ietf.org" <sieve@ietf.org>
Subject: Re: [sieve] Late breaing issue in draft-freed-sieve-in-xml-06.txt
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SIEVE Working Group <sieve.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sieve>, <mailto:sieve-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sieve>
List-Post: <mailto:sieve@ietf.org>
List-Help: <mailto:sieve-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sieve>, <mailto:sieve-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 04 Sep 2009 11:03:26 -0000

On Thu, Aug 27, 2009 at 7:01 AM, Aaron Stone<aaron@serendipity.cx> wrote:
>
>
> On Aug 26, 2009, at 7:57 PM, Barry Leiba
> <barryleiba.mailing.lists@gmail.com> wrote:
>
>>> So what do we do about this? There are basically four options:
>>>
>>> (1) Drop the use of XML Schema and just have an RNG grammar.
>>>
>>> (2) Remove the ability to have displaydata, comments, and elements from
>>> other
>>>  namespaces appear in a command element after the test clause. This means
>>>  something like
>>>
>>>  <control name="if">
>>>    <test name="header">
>>>      <tag>is</tag>
>>>      <str>Sender</str>
>>>      <str>owner-ietf-mta-filters@imc.org</str>
>>>    </test>
>>>    <action name="fileinto">
>>>      <str>filter</str>
>>>    </action> <comment>move to "filter" mailbox</comment>
>>>  </control>
>>>
>>>  is no longer valid. It would have to be written as:
>>>
>>>  <control name="if">
>>>    <test name="header">
>>>      <tag>is</tag>
>>>      <str>Sender</str>
>>>      <str>owner-ietf-mta-filters@imc.org</str>
>>>    </test>
>>>    <action name="fileinto">
>>>      <str>filter</str>
>>>      <comment>move to "filter" mailbox</comment>
>>>    </action>
>>>  </control>
>>>
>>> (3) Switch to using XML comments instead of <comment> elements. Note that
>>>  this addresses the issue for comments only; we'd still have to drop the
>>>  ability to have material from other namespaces or displaydata appear
>>>  after the test clause.
>>>
>>> (4) Use a wrapper element to disambiguate the schema. This would mean
>>>  writing something like this:
>>>
>>>  <control name="if">
>>>    <test name="header">
>>>      <tag>is</tag>
>>>      <str>Sender</str>
>>>      <str>owner-ietf-mta-filters@imc.org</str>
>>>    </test>
>>>    <action name="fileinto">
>>>      <str>filter</str>
>>>    </action>
>>>    <postamble>
>>>      <comment>move to "filter" mailbox</comment>
>>>    </postamble>
>>>  </control>
>>
>> ...
>>>
>>> My personal preference (and I believe it is Sai's as well because it was
>>> his
>>> idea) is (4). And I prefer to add two wrappers, not one. The additional
>>> elements are ugly, but this gives us the most flexibility and doesn't
>>> lose any
>>> capabilities.
>>
>> I'm happy with 2 and 4.  If we use 4, I agree that we should add both
>> wrappers.
>>
>
> I personally prefer 2 because it connects the comment with the action (with
> the caveat that I'm not sure how the parser divines this from sieve syntax).
> Option 4 does not appear to be able to represent multiple interleaved
> comments and actions.

my personal preference is 1 (in practice, validation is very likely to
be programmatic - or not at all - for this type of xml document)

but i'm happy with option 4 and agree that two wrappers would be
better than one

- robert