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

Aaron Stone <aaron@serendipity.cx> Thu, 27 August 2009 06:02 UTC

Return-Path: <aaron@serendipity.cx>
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 BC48E3A6D89 for <sieve@core3.amsl.com>; Wed, 26 Aug 2009 23:02:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.955
X-Spam-Level:
X-Spam-Status: No, score=-0.955 tagged_above=-999 required=5 tests=[AWL=1.644, 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 vlxvg1R7zRRA for <sieve@core3.amsl.com>; Wed, 26 Aug 2009 23:02:07 -0700 (PDT)
Received: from mail.serendipity.cx (serendipity.cx [75.101.96.32]) by core3.amsl.com (Postfix) with ESMTP id D33E53A6C0E for <sieve@ietf.org>; Wed, 26 Aug 2009 23:02:06 -0700 (PDT)
Received: from [192.168.0.6] (localhost [127.0.0.1]) by mail.serendipity.cx (Postfix) with ESMTP id 1F0541C27; Wed, 26 Aug 2009 14:28:28 -0700 (PDT)
References: <01NCQPIXFUZ0001ML6@mauve.mrochek.com> <6c9fcc2a0908261957l4bd1cbcbq3fcd4d752807dec@mail.gmail.com>
Message-Id: <1756CDFB-1597-49A6-BBD8-0BD883432938@serendipity.cx>
From: Aaron Stone <aaron@serendipity.cx>
To: "barryleiba@computer.org" <barryleiba@computer.org>
In-Reply-To: <6c9fcc2a0908261957l4bd1cbcbq3fcd4d752807dec@mail.gmail.com>
Content-Type: text/plain; charset="us-ascii"; format="flowed"; delsp="yes"
Content-Transfer-Encoding: 7bit
X-Mailer: iPhone Mail (7A400)
Mime-Version: 1.0 (iPhone Mail 7A400)
Date: Wed, 26 Aug 2009 23:01:58 -0700
Cc: "sieve@ietf.org" <sieve@ietf.org>, Ned Freed <ned.freed@mrochek.com>
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: Thu, 27 Aug 2009 06:02:07 -0000

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.

Aaron