Re: draft-freed-sieve-in-xml status?

Arnt Gulbrandsen <arnt@gulbrandsen.priv.no> Thu, 15 January 2009 09:07 UTC

Return-Path: <owner-ietf-mta-filters@mail.imc.org>
X-Original-To: ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com
Delivered-To: ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 929F63A6879 for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Thu, 15 Jan 2009 01:07:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.504
X-Spam-Level:
X-Spam-Status: No, score=-2.504 tagged_above=-999 required=5 tests=[AWL=0.094, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001]
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 8bKQof9zVQ8W for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Thu, 15 Jan 2009 01:07:02 -0800 (PST)
Received: from balder-227.proper.com (properopus-pt.tunnel.tserv3.fmt2.ipv6.he.net [IPv6:2001:470:1f04:392::2]) by core3.amsl.com (Postfix) with ESMTP id 562F43A685D for <sieve-archive-Aet6aiqu@ietf.org>; Thu, 15 Jan 2009 01:07:02 -0800 (PST)
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id n0F8sfij032503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Jan 2009 01:54:41 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.14.2/8.13.5/Submit) id n0F8sfY2032502; Thu, 15 Jan 2009 01:54:41 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id n0F8sSHF032490 for <ietf-mta-filters@imc.org>; Thu, 15 Jan 2009 01:54:39 -0700 (MST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from kalyani.oryx.com (localhost.oryx.com [127.0.0.1]) by kalyani.oryx.com (Postfix) with ESMTP id 016634AC46; Thu, 15 Jan 2009 09:54:26 +0100 (CET)
Received: from arnt@oryx.com (HELO lochnagar.oryx.com) by kalyani.oryx.com (Archiveopteryx 3.0.5) with esmtp id 1232009666-21270-1/6/28 (4 recipients); Thu, 15 Jan 2009 09:54:26 +0100
Message-Id: <lLhXm2d90PH6pOJE0Q6t2Q.md5@lochnagar.oryx.com>
Date: Thu, 15 Jan 2009 09:54:40 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-mta-filters@imc.org
Subject: Re: draft-freed-sieve-in-xml status?
Cc: Ned Freed <ned.freed@mrochek.com>, Aaron Stone <aaron@serendipity.cx>
References: <f470f68e0812041225x318bfdccg1bf9201b53ce8c2e@mail.gmail.com> <f470f68e0901061501m5f59723cu805e0487c548145@mail.gmail.com> <01N3ZJMB3Y6M00007A@mauve.mrochek.com> <29d3c4cb0901070006i7bfc8f3cy907ba65d91ffd39e@mail.gmail.com> <0XUGjMdUgNiZDRONMxbEsA.md5@lochnagar.oryx.com> <29d3c4cb0901070605p4048c78do3a9f35c8b36ac552@mail.gmail.com> <PCbmC+s//kiDjc43KauGHA.md5@lochnagar.oryx.com> <01N40HBTLOJ800007A@mauve.mrochek.com> <f470f68e0901101003g5d17df85y270b4afbef54e72b@mail.gmail.com> <01N452FS1U8O00007A@mauve.mrochek.com> <f470f68e0901110213g43a646c4ke6e1672489be04bd@mail.gmail.com> <01N45ZKF5YYO00007A@mauve.mrochek.com> <1231700263.16458.102.camel@turtle> <01N46IJ4SZ8G00007A@mauve.mrochek.com> <IvwUgzzICmnHRBvykAYmkg.md5@lochnagar.oryx.com> <01N4AQTPILMS00007A@mauve.mrochek.com>
In-Reply-To: <01N4AQTPILMS00007A@mauve.mrochek.com>
Content-Type: text/plain; format="flowed"
Mime-Version: 1.0
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Ned Freed writes:
>> Ned Freed writes:
>> > The other issue here is how to map this stuff to regular Sieve. The
>> > stylesheet given in the appendix maps displaydata and displayblock
>> > material into structured comments. This can easily be
>> > extended/changed to cover the handling of material in other
>> > namespaces. But do we want to formalize the structured comment
>> > convention?
>>
>> My desire for structured comments is vanishingly small. My two cents.
>
> I don't think we have a choice. The problem is the XML representation 
> is richer and since it isn't intended as a storage format there  has 
> to be a way to map the additional information to something in regular 
> sieve. Unless we want to do something along the lines of the meta 
> extension Kjetil proposed - which I don't think we want to do, pretty 
> much the only place for it is in comments.

I didn't reply... but at least I would have preferred such a meta thingy 
at 302 time. Now it may be too late.

> I apologize for not being clearer here - I made this sound like it's a 
> processor quality thing, which it isn't.

You were clear enough for me at least.

> The problem is more fundamental: In XML comments are not considered to 
> be part of the infoset. This means conforming XML processors are 
> explicitly allowed to drop them. Which in turn means you cannot count 
> on them being available for processing.

Sure. The question is whether that's a problem.

If you write a script in xmlsieve, convert it and then convert it back, 
then any comments you added may have been deleted. AFAICT this is not a 
problem.

If you write it in plain old sieve, convert it and then convert it back, 
then comments are preserved due to <comment>. AFAICT this is neat, but 
it's not clear to me that it's necessary. (Btw. Now that I think about 
it. Is whitespace preserved in arguments?)

>> I wish I'd kept my mouth shut. So many of these things are just 
>> better than some even worse alternative.
>
> Yeah, that's the nature of the beast, I'm afraid.

Yes.

Arnt