
From arnt@gulbrandsen.priv.no  Thu Oct  1 04:33:44 2009
Return-Path: <arnt@gulbrandsen.priv.no>
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 E56B83A6A45 for <sieve@core3.amsl.com>; Thu,  1 Oct 2009 04:33:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.134
X-Spam-Level: 
X-Spam-Status: No, score=-2.134 tagged_above=-999 required=5 tests=[AWL=0.464,  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 oWLDyWKDsrDT for <sieve@core3.amsl.com>; Thu,  1 Oct 2009 04:33:44 -0700 (PDT)
Received: from strange.aox.org (strange.aox.org [80.244.248.170]) by core3.amsl.com (Postfix) with ESMTP id 0300B3A6A34 for <sieve@ietf.org>; Thu,  1 Oct 2009 04:33:43 -0700 (PDT)
Received: from fri.gulbrandsen.priv.no (kalyani.aox.org [79.140.39.164]) by strange.aox.org (Postfix) with ESMTP id 897D6FA04AB; Thu,  1 Oct 2009 11:35:06 +0000 (UTC)
Received: from arnt@gulbrandsen.priv.no (HELO lochnagar.gulbrandsen.priv.no) by fri.gulbrandsen.priv.no (Archiveopteryx 3.1.0) with esmtp id 1254396773-53805-53805/5/9 (4 recipients); Thu, 1 Oct 2009 13:32:53 +0200
Message-Id: <dsOQcHSojndvDTpY9xZM1g.md5@lochnagar.gulbrandsen.priv.no>
Date: Thu, 1 Oct 2009 13:35:15 +0200
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: sieve@ietf.org
Content-Type: text/plain; format=flowed
Mime-Version: 1.0
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Barry Leiba <barryleiba.mailing.lists@gmail.com>
Subject: [sieve] extlists draft
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, 01 Oct 2009 11:33:45 -0000

Hi,

I did my first pass across the drafts in months. Not much to say from my 
point of view, buy e-l warrants comment.

2.2: It ought to say clearly that both retrieval and matching are 
list-specific. That is, even if the Sieve engine retrieves the list, it 
has to use a maching method decided by the list.

2.3: I agree with Barry; one redirect :list option is enough, and it 
should be the sieve-like one.

2.4: A few examples of such URIs would be good.

There's a sort of conflict between 2.2 and 2.4. 2.2 says that the lists 
basically are what they are. The list retrieval is done in a 
list-specific way, matching is (or may be) done in a list-specific way. 
But then comes 2.4 and talks about LDAP and CardDAV. Should it then 
also say what matching means in case of LDAP and CardDAV, and how to 
retrieve?

2.5: The example is opaque to me. If the envelope _recipient_'s 
subaddress is on a list, and the header _sender_, then the message is 
forwarded to that list?

    rcpt to:<alexey+ietf@example.com>
    ...
    From: joaquin@exemplo.com.br

If both "ietf" and "joaquin@exemplo.com.br" are on the list, then the 
message is forwarded both to local user "ietf" and 
"joaquin@exemplo.com.br". Right?

IMO, the example is either just wrong, it it does what its author meant 
but is so difficult to read and understand that it ought to be changed 
for that reason.

As a bonus, it uses "header" instead of "address" to test for addresses 
in the From field. Yuck.

Arnt

From lunohod.baikonur@googlemail.com  Thu Oct  1 14:22:20 2009
Return-Path: <lunohod.baikonur@googlemail.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 8D9163A67EF for <sieve@core3.amsl.com>; Thu,  1 Oct 2009 14:22:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.87
X-Spam-Level: 
X-Spam-Status: No, score=-1.87 tagged_above=-999 required=5 tests=[AWL=0.107,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 jsiuTtkE6mq7 for <sieve@core3.amsl.com>; Thu,  1 Oct 2009 14:22:19 -0700 (PDT)
Received: from mail-qy0-f191.google.com (mail-qy0-f191.google.com [209.85.221.191]) by core3.amsl.com (Postfix) with ESMTP id 75BBD3A67B3 for <sieve@ietf.org>; Thu,  1 Oct 2009 14:22:19 -0700 (PDT)
Received: by qyk29 with SMTP id 29so470112qyk.32 for <sieve@ietf.org>; Thu, 01 Oct 2009 14:23:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=sPFJwR0WyGvrWHMm00Y2pLu0xooDfFqGlIbhWRH7rp8=; b=SaiQx3W9EV51BAPdDSOpxhnz2gD3+iOpNuoRTAuEcFo7IzJqowLUEJQhmAUjKkomBc 4l2J3zWGlCLNFt5p+hJ58VC6nzpVLxmL/XQAgA2UgRwNhYLi8FufNBuWls1WZjge2F0a Vrht/aE1K6tvBQfbjYnrYEozmTOQpec31PgQk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=VtwxTD8cOiQEl3SL4JsmXAiVhxh8j5ZlP4sLPalJBwofJdyFOja33Pp9oYIlBiGcVy j0uJAm8Fwlx0vUq4OXar0pkl8uAWudX1/fE7jJa2M/SNdGWUUZPyUIHQ3S5eWP8W/eSY Qz/YYRe3m238HcLTOsS3wLSbM5TrYQHRyOUEE=
MIME-Version: 1.0
Sender: lunohod.baikonur@googlemail.com
Received: by 10.229.78.162 with SMTP id l34mr1579804qck.96.1254432225256; Thu,  01 Oct 2009 14:23:45 -0700 (PDT)
In-Reply-To: <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com>
Date: Thu, 1 Oct 2009 22:23:45 +0100
X-Google-Sender-Auth: 04e8f35377507eb0
Message-ID: <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
To: barryleiba@computer.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: sieve@ietf.org, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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, 01 Oct 2009 21:22:20 -0000

On Tue, Sep 29, 2009 at 8:55 AM, Barry Leiba
<barryleiba.mailing.lists@gmail.com> wrote:
 [...]
> I agree that it'd be better to put it into the variables spec. =A0You
> know I'm not suggesting going through everything to say where you can
> and can't do variable substitution; you should know me better than
> that. =A0But Hannah has a point: the variables spec says this:
>
> =A0 This extension changes the semantics of quoted-string, multi-line-
> =A0 literal and multi-line-dotstuff found in [SIEVE] to enable the
> =A0 inclusion of the value of variables.
>
> ...and the grammar for "importance" uses none of those three syntax
> constructions. =A0Taken at its word, that would imply that variable
> substitution doesn't apply here.

I am fine with this being reported as an Erratum. Do you want to do that?

> We might change RFC 5229 to add that
> variables can substitute for literal strings as well. =A0Or we might
> decide that it's clear enough, and doesn't need changing.

From barryleiba.mailing.lists@gmail.com  Mon Oct  5 06:25:03 2009
Return-Path: <barryleiba.mailing.lists@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 2162128C1C1 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 06:25:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.519
X-Spam-Level: 
X-Spam-Status: No, score=-2.519 tagged_above=-999 required=5 tests=[AWL=0.080,  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 7cS65WkT5PIk for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 06:25:02 -0700 (PDT)
Received: from mail-gx0-f212.google.com (mail-gx0-f212.google.com [209.85.217.212]) by core3.amsl.com (Postfix) with ESMTP id 3FD7028C1C4 for <sieve@ietf.org>; Mon,  5 Oct 2009 06:25:02 -0700 (PDT)
Received: by gxk4 with SMTP id 4so3784639gxk.8 for <sieve@ietf.org>; Mon, 05 Oct 2009 06:26:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Qo+1k86KCq+MNyfVI+tItwr6nlIKCmOCSlprOQn52QQ=; b=cg6zHW2s/+6gMsKtBiwtltYEk5u9ReScJV2j3Sht62L7M/SDlFm/HkiuoK7i3Sir4j HkLr27KorRfMGJH9elLXm9jOcJb8giiQGH3bn88ULYC4MIBQWnffTD3KCMqGsvNY7z9J NOgbQHKj8RHPVj7l8GB7raZxDkCp8kq71ROjY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=ffbbyz8O/vsQpjMnqOpXlfAisAQkItEMaUN1CbfxPgreqb0D7ytz/r6V4Qll9+kXt9 SPuU5VgxdoC4kDqRGdrtmsHhr6L0VnfGNG7E6L8W0lx1u78g4a61x9XTry1we/II9uq5 ot8nAhFvYljIJuDEHD1W7A+9qgNhUpeT/7tYA=
MIME-Version: 1.0
Received: by 10.150.56.14 with SMTP id e14mr9972501yba.333.1254749194360; Mon,  05 Oct 2009 06:26:34 -0700 (PDT)
In-Reply-To: <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com>
Date: Mon, 5 Oct 2009 09:26:34 -0400
Message-ID: <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com>
From: Barry Leiba <barryleiba.mailing.lists@gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: Ned Freed <ned.freed@mrochek.com>, sieve@ietf.org
Subject: Re: [sieve] Notify (RFC 5435) questions
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: barryleiba@computer.org
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: Mon, 05 Oct 2009 13:25:03 -0000

>> I agree that it'd be better to put it into the variables spec. =A0You
>> know I'm not suggesting going through everything to say where you can
>> and can't do variable substitution; you should know me better than
>> that. =A0But Hannah has a point: the variables spec says this:
>>
>> =A0 This extension changes the semantics of quoted-string, multi-line-
>> =A0 literal and multi-line-dotstuff found in [SIEVE] to enable the
>> =A0 inclusion of the value of variables.
>>
>> ...and the grammar for "importance" uses none of those three syntax
>> constructions. =A0Taken at its word, that would imply that variable
>> substitution doesn't apply here.
>
> I am fine with this being reported as an Erratum. Do you want to do that?

I said this in the same note:

>> We might change RFC 5229 to add that
>> variables can substitute for literal strings as well. =A0Or we might
>> decide that it's clear enough, and doesn't need changing.

...and no one's specifically commented on it.  If we have
rough/vague/sorta-maybe consensus for making a small change to 5229,
I'll submit an erratum.  Otherwise, we ought to leave it as is.  I
particularly want to hear Ned's opinion, as well as, of course, those
of others.

The change I would propose is to make the quoted text, above, change to thi=
s:

     This extension changes the semantics of quoted-string, multi-line-
     literal and multi-line-dotstuff found in [SIEVE], including any
literals that are
     directly specified in the grammar, to enable the inclusion of the
value of variables.

As far as I can tell, that is the only place in RFC 5229 that says
anything about what variables can substitute for.

Barry

From alexey.melnikov@isode.com  Mon Oct  5 07:12:13 2009
Return-Path: <alexey.melnikov@isode.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 ADFC528C1EC for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 07:12:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.509
X-Spam-Level: 
X-Spam-Status: No, score=-2.509 tagged_above=-999 required=5 tests=[AWL=0.090,  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 aeLyJL2DySM6 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 07:12:12 -0700 (PDT)
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by core3.amsl.com (Postfix) with ESMTP id 88C9928C1E9 for <sieve@ietf.org>; Mon,  5 Oct 2009 07:12:12 -0700 (PDT)
Received: from [172.16.2.156] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <Ssn=FQB9YXcE@rufus.isode.com>; Mon, 5 Oct 2009 15:13:46 +0100
Message-ID: <4AC9FF01.3050804@isode.com>
Date: Mon, 05 Oct 2009 15:13:21 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: barryleiba@computer.org
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com>
In-Reply-To: <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Ned Freed <ned.freed@mrochek.com>, sieve@ietf.org
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 14:12:13 -0000

Barry Leiba wrote:

>>>I agree that it'd be better to put it into the variables spec.  You
>>>know I'm not suggesting going through everything to say where you can
>>>and can't do variable substitution; you should know me better than
>>>that.  But Hannah has a point: the variables spec says this:
>>>
>>>  This extension changes the semantics of quoted-string, multi-line-
>>>  literal and multi-line-dotstuff found in [SIEVE] to enable the
>>>  inclusion of the value of variables.
>>>
>>>...and the grammar for "importance" uses none of those three syntax
>>>constructions.  Taken at its word, that would imply that variable
>>>substitution doesn't apply here.      
>>>
>>I am fine with this being reported as an Erratum. Do you want to do that?
>>    
>>
>I said this in the same note:  
>
>>>We might change RFC 5229 to add that
>>>variables can substitute for literal strings as well.  Or we might
>>>decide that it's clear enough, and doesn't need changing.
>>>      
>>>
>...and no one's specifically commented on it.  If we have
>rough/vague/sorta-maybe consensus for making a small change to 5229,
>I'll submit an erratum.  Otherwise, we ought to leave it as is.  I
>particularly want to hear Ned's opinion, as well as, of course, those
>of others.
>
>The change I would propose is to make the quoted text, above, change to this:
>
>     This extension changes the semantics of quoted-string, multi-line-
>     literal and multi-line-dotstuff found in [SIEVE], including any
>literals that are
>     directly specified in the grammar, to enable the inclusion of the
>value of variables.
>
>As far as I can tell, that is the only place in RFC 5229 that says
>anything about what variables can substitute for.
>  
>
I think the Enotify spec needs to say that variable expansion applies to 
the importance field.

If you want to add a statement to the Variables spec, we can do that 
too. But I don't believe this would eliminate the need to clarify Enotify.


From barryleiba.mailing.lists@gmail.com  Mon Oct  5 07:24:56 2009
Return-Path: <barryleiba.mailing.lists@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 9460F3A692F for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 07:24:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.514
X-Spam-Level: 
X-Spam-Status: No, score=-2.514 tagged_above=-999 required=5 tests=[AWL=0.085,  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 SAEnRONiONAK for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 07:24:55 -0700 (PDT)
Received: from mail-yw0-f185.google.com (mail-yw0-f185.google.com [209.85.211.185]) by core3.amsl.com (Postfix) with ESMTP id B9FD13A67D8 for <sieve@ietf.org>; Mon,  5 Oct 2009 07:24:55 -0700 (PDT)
Received: by ywh15 with SMTP id 15so2732838ywh.5 for <sieve@ietf.org>; Mon, 05 Oct 2009 07:26:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5ltG/aZ98jF6tMvG028ilvviZlej88kJ8Mf+63BB0HI=; b=eD/hxgrzgvGPSKDoSZIWnbNk8ttHNRKutrq1m41nzt6i6CmOjjyn8nhmIPWm+oUP84 4WhnfVVk6vuuT4NsPDN8BUyLaIAmCHOdy2mjf0gCZH1uxytIYFEQGhAW6gwg+oHABC7C wxu3ZxefHB2Yxsb7HNNDov24sj/1TR7O044OI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=qbEcgCB8f8VtsmGL9nXX9dQrr979CTxlSqhIsn/kYw56LvCCs0td7G2YZfq0rZlmLv SwUSdXTx9jwifV45HEvTXMvH47VuOkQQG/JxyCSYGq6BMrrP0gFKLGVOAuMQQAYuFXKh O7oGUGbKZWbrt1OHF2Ych6KAQ8c9bCz21Ggg8=
MIME-Version: 1.0
Received: by 10.150.20.1 with SMTP id 1mr171794ybt.4.1254752788040; Mon, 05  Oct 2009 07:26:28 -0700 (PDT)
In-Reply-To: <4AC9FF01.3050804@isode.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <4AC9FF01.3050804@isode.com>
Date: Mon, 5 Oct 2009 10:26:27 -0400
Message-ID: <6c9fcc2a0910050726i594b10d1w68177dad43450a25@mail.gmail.com>
From: Barry Leiba <barryleiba.mailing.lists@gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: sieve@ietf.org, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: barryleiba@computer.org
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: Mon, 05 Oct 2009 14:24:56 -0000

>> The change I would propose is to make the quoted text, above, change to
>> this:
>>
>> =A0 =A0This extension changes the semantics of quoted-string, multi-line=
-
>> =A0 =A0literal and multi-line-dotstuff found in [SIEVE], including any
>> literals that are
>> =A0 =A0directly specified in the grammar, to enable the inclusion of the
>> value of variables.
>>
>> As far as I can tell, that is the only place in RFC 5229 that says
>> anything about what variables can substitute for.
>>
>
> I think the Enotify spec needs to say that variable expansion applies to =
the
> importance field.
>
> If you want to add a statement to the Variables spec, we can do that too.
> But I don't believe this would eliminate the need to clarify Enotify.

Hm.
I think that gets into Ned's concern, with which I agree, of having to
specify in every extension that variables apply here and here and
here.

If 5229 (as modified) makes it clear that grammatical structures such as
   foobar =3D "foo" / "bar"
are covered by variable substitution -- which is what I think my
proposed change does -- then why would we also need to update any of
the notify specs?

Barry

From NED+mta-filters@mauve.mrochek.com  Mon Oct  5 08:08:33 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 64C4E3A69AD for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:08:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.51
X-Spam-Level: 
X-Spam-Status: No, score=-2.51 tagged_above=-999 required=5 tests=[AWL=0.089,  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 1+J-aEvQIPt7 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:08:32 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id 768D13A6973 for <sieve@ietf.org>; Mon,  5 Oct 2009 08:08:32 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEIUWX5YR40002B0@mauve.mrochek.com> for sieve@ietf.org; Mon, 5 Oct 2009 08:10:05 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEI6JTN2E800004A@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Mon, 05 Oct 2009 08:10:02 -0700 (PDT)
Date: Mon, 05 Oct 2009 07:47:29 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Thu, 01 Oct 2009 22:23:45 +0100" <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Message-id: <01NEIUWV9HXG00004A@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=ISO-8859-1
Content-transfer-encoding: 8BIT
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com>
Cc: sieve@ietf.org, barryleiba@computer.org, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 15:08:33 -0000

> On Tue, Sep 29, 2009 at 8:55 AM, Barry Leiba
> <barryleiba.mailing.lists@gmail.com> wrote:
>  [...]
> > I agree that it'd be better to put it into the variables spec.  You
> > know I'm not suggesting going through everything to say where you can
> > and can't do variable substitution; you should know me better than
> > that.  But Hannah has a point: the variables spec says this:
> >
> >   This extension changes the semantics of quoted-string, multi-line-
> >   literal and multi-line-dotstuff found in [SIEVE] to enable the
> >   inclusion of the value of variables.
> >
> > ...and the grammar for "importance" uses none of those three syntax
> > constructions.  Taken at its word, that would imply that variable
> > substitution doesn't apply here.

> I am fine with this being reported as an Erratum. Do you want to do that?

I'm not fine with it and don't want to do it. Again, this is a slippery slope.
We have any number of specifications: relational (:count, :value), imapflags
(list-of-flags), and date (:zone, :originalzone) to name a few which, like
notary, use an overlay ABNF syntax to further restrict the allowed values of a
partameter and which have the same "problem" you cite here. If we're to
"correct" this "error", we need to "correct" all the others, and it places yet
another silly requirement on future specifications that do this.

I will also point out that it isn't even necessary for ABNF to be involved.
This overly creative reading (and like it or not, that's what it is) of syntax
restriction could be extended to other paramters whose syntax is restricted in
other ways, such as date-part values in the date extension, the reason value in
the vacation extension, and so on.

Look, I get that overlay syntaxes are inherently subject to this sort of
confusion. It's why got rid of all of them from MIME in the transition from RFC
1521 to RFCs 2045 and 2046. The diffference is in MIME the overlay syntaxes
turned out not to be essentially useless. THis is not the case in Sieve.

Again, the place to deal with this is in the variables specification. Something
along the lines of "specifications for other Sieve extensions may employ ABNF
or other syntax specification tools to restrict the allowed values of certain
strings. When this is done it doesn't imploy that variable substitutions cannot
take place. Rather, the ability for variable substitution to occur is linked to
the string's role in the core Sieve grammer specified in RFC 5228". I can
support this sort of erratum.


> > We might change RFC 5229 to add that
> > variables can substitute for literal strings as well.  Or we might
> > decide that it's clear enough, and doesn't need changing.

I don't know what you mean by "literal string" here, so I don't know
what purpose, if any, this serves.

				Ned

From NED+mta-filters@mauve.mrochek.com  Mon Oct  5 08:12:29 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 5064C3A6A05 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:12:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.517
X-Spam-Level: 
X-Spam-Status: No, score=-2.517 tagged_above=-999 required=5 tests=[AWL=0.082,  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 f3VHb4WaprVu for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:12:28 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id 884113A6A01 for <sieve@ietf.org>; Mon,  5 Oct 2009 08:12:28 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEIV1T47K00002BL@mauve.mrochek.com> for sieve@ietf.org; Mon, 5 Oct 2009 08:14:01 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEI6JTN2E800004A@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Mon, 05 Oct 2009 08:13:59 -0700 (PDT)
Date: Mon, 05 Oct 2009 08:10:51 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Mon, 05 Oct 2009 09:26:34 -0400" <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com>
To: Barry Leiba <barryleiba.mailing.lists@gmail.com>
Message-id: <01NEIV1RFUPS00004A@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=ISO-8859-1
Content-transfer-encoding: 8BIT
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com>
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, sieve@ietf.org, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 15:12:29 -0000

> >> I agree that it'd be better to put it into the variables spec.  You
> >> know I'm not suggesting going through everything to say where you can
> >> and can't do variable substitution; you should know me better than
> >> that.  But Hannah has a point: the variables spec says this:
> >>
> >>   This extension changes the semantics of quoted-string, multi-line-
> >>   literal and multi-line-dotstuff found in [SIEVE] to enable the
> >>   inclusion of the value of variables.
> >>
> >> ...and the grammar for "importance" uses none of those three syntax
> >> constructions.  Taken at its word, that would imply that variable
> >> substitution doesn't apply here.
> >
> > I am fine with this being reported as an Erratum. Do you want to do that?

> I said this in the same note:

> >> We might change RFC 5229 to add that
> >> variables can substitute for literal strings as well.  Or we might
> >> decide that it's clear enough, and doesn't need changing.

> ...and no one's specifically commented on it.  If we have
> rough/vague/sorta-maybe consensus for making a small change to 5229,
> I'll submit an erratum.  Otherwise, we ought to leave it as is.  I
> particularly want to hear Ned's opinion, as well as, of course, those
> of others.

I just suggested some possible text. I don't think it's great, but it's
a start.

> The change I would propose is to make the quoted text, above, change to this:

>      This extension changes the semantics of quoted-string, multi-line-
>      literal and multi-line-dotstuff found in [SIEVE], including any
> literals that are
>      directly specified in the grammar, to enable the inclusion of the
> value of variables.

This is too narrow. Any sort of syntax restriction, whether to a set of
specific strings, or to a time zone, or whatever, could possibly be construed
as not allowed variable usage. What needs to be conveyed is that these syntax
restrictions apply to the _result_ of variable substitution if such
substitutions are used.

> As far as I can tell, that is the only place in RFC 5229 that says
> anything about what variables can substitute for.

Agreed.

				Ned

From guenther+mtafilters@sendmail.com  Mon Oct  5 08:13:40 2009
Return-Path: <guenther+mtafilters@sendmail.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 A8EDD3A69FB for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:13:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 yuBINo++uQpc for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:13:40 -0700 (PDT)
Received: from spork.sendmail.com (tls.sendmail.com [209.246.26.41]) by core3.amsl.com (Postfix) with ESMTP id CC2A73A6973 for <sieve@ietf.org>; Mon,  5 Oct 2009 08:13:39 -0700 (PDT)
Received: from [10.210.202.29] ([10.210.202.29]) (authenticated bits=0) by spork.sendmail.com (Switch-3.4.1/Switch-3.4.1) with ESMTP id n95FFAeo000778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Oct 2009 08:15:12 -0700
X-BATV: Sendmail BATV Filter v0.4.0.dev spork.sendmail.com n95FFAeo000778
X-DKIM: Sendmail DKIM Filter v2.5.6 spork.sendmail.com n95FFAeo000778
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sendmail.com; s=spork.dkim; t=1254755714; bh=kfSMsajg6NjZBn69bBezbfbZTnd17zDXF9g8 C+7BJQc=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID: References:MIME-Version:Content-Type; b=iw552N/G8d7mm6fMu6WMH57e8Q P2QkbRJZHksRUziie3VGybpU7WfuKmRQaaLtXypF24cL0y392pDfTDGF+r9yNz/WKww cYAocHtocAtNCt+dOKyo6aDNv2LLiHeCNLQnY7B22KIQ1KhEzYf71P4deJCYDCY22G1 M5cbwA3CnJc=
X-DKIM: Sendmail DKIM Filter v2.5.6 spork.sendmail.com n95FFAeo000778
Date: Mon, 5 Oct 2009 08:15:10 -0700
From: Philip Guenther <guenther+mtafilters@sendmail.com>
X-X-Sender: guenther@vanye.sendmail.com
To: NED+mta-filters@mauve.mrochek.com
In-Reply-To: <01NEIUWV9HXG00004A@mauve.mrochek.com>
Message-ID: <alpine.BSO.2.00.0910050814350.2360@vanye.sendmail.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <01NEIUWV9HXG00004A@mauve.mrochek.com>
User-Agent: Alpine 2.00 (BSO 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, sieve@ietf.org
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 15:13:40 -0000

On Mon, 5 Oct 2009, NED+mta-filters@mauve.mrochek.com wrote:
...
> Again, the place to deal with this is in the variables specification. 
> Something along the lines of "specifications for other Sieve extensions 
> may employ ABNF or other syntax specification tools to restrict the 
> allowed values of certain strings. When this is done it doesn't imploy 
> that variable substitutions cannot take place. Rather, the ability for 
> variable substitution to occur is linked to the string's role in the 
> core Sieve grammer specified in RFC 5228". I can support this sort of 
> erratum.

+1

From NED+mta-filters@mauve.mrochek.com  Mon Oct  5 08:18:07 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 A2F313A6A06 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:18:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.524
X-Spam-Level: 
X-Spam-Status: No, score=-2.524 tagged_above=-999 required=5 tests=[AWL=0.075,  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 uOXZOT0ictZW for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 08:18:07 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id ECAE828C1D9 for <sieve@ietf.org>; Mon,  5 Oct 2009 08:18:06 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEIV8SXT9S0002BW@mauve.mrochek.com> for sieve@ietf.org; Mon, 5 Oct 2009 08:19:40 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEI6JTN2E800004A@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Mon, 05 Oct 2009 08:19:37 -0700 (PDT)
Date: Mon, 05 Oct 2009 08:18:54 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Mon, 05 Oct 2009 07:47:29 -0700 (PDT)" <01NEIUWV9HXG00004A@mauve.mrochek.com>
To: Ned Freed <ned.freed@mrochek.com>
Message-id: <01NEIV8RA5VI00004A@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <01NEIUWV9HXG00004A@mauve.mrochek.com>
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, barryleiba@computer.org, Ned Freed <ned.freed@mrochek.com>, sieve@ietf.org
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 15:18:07 -0000

> Look, I get that overlay syntaxes are inherently subject to this sort of
> confusion. It's why got rid of all of them from MIME in the transition from RFC
> 1521 to RFCs 2045 and 2046. The diffference is in MIME the overlay syntaxes
> turned out not to be essentially useless. THis is not the case in Sieve.

Correction: I meant to say "turned out to be essentally useless".

				Ned

From aaron@serendipity.cx  Mon Oct  5 09:57:30 2009
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 24BF828C20C for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 09:57:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.503
X-Spam-Level: 
X-Spam-Status: No, score=-1.503 tagged_above=-999 required=5 tests=[AWL=1.096,  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 RFdVd6IoYLby for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 09:57:29 -0700 (PDT)
Received: from mail.serendipity.cx (serendipity.cx [75.101.96.32]) by core3.amsl.com (Postfix) with ESMTP id E6A5828C207 for <sieve@ietf.org>; Mon,  5 Oct 2009 09:57:28 -0700 (PDT)
Received: from [192.168.0.4] (localhost [127.0.0.1]) by mail.serendipity.cx (Postfix) with ESMTP id F39446F0A; Mon,  5 Oct 2009 10:00:59 -0700 (PDT)
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com>
Message-Id: <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx>
From: Aaron Stone <aaron@serendipity.cx>
To: "NED+mta-filters@mauve.mrochek.com" <NED+mta-filters@mauve.mrochek.com>
In-Reply-To: <01NEIV1RFUPS00004A@mauve.mrochek.com>
Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
X-Mailer: iPhone Mail (7C144)
Mime-Version: 1.0 (iPhone Mail 7C144)
Date: Mon, 5 Oct 2009 09:58:47 -0700
Cc: Ned Freed <ned.freed@mrochek.com>, Alexey Melnikov <alexey.melnikov@isode.com>, Barry Leiba <barryleiba.mailing.lists@gmail.com>, "sieve@ietf.org" <sieve@ietf.org>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 16:57:30 -0000

On Oct 5, 2009, at 8:10 AM, NED+mta-filters@mauve.mrochek.com wrote:

>>>> I agree that it'd be better to put it into the variables spec.  You
>>>> know I'm not suggesting going through everything to say where you  
>>>> can
>>>> and can't do variable substitution; you should know me better than
>>>> that.  But Hannah has a point: the variables spec says this:
>>>>
>>>>   This extension changes the semantics of quoted-string, multi- 
>>>> line-
>>>>   literal and multi-line-dotstuff found in [SIEVE] to enable the
>>>>   inclusion of the value of variables.
>>>>
>>>> ...and the grammar for "importance" uses none of those three syntax
>>>> constructions.  Taken at its word, that would imply that variable
>>>> substitution doesn't apply here.
>>>
>>> I am fine with this being reported as an Erratum. Do you want to  
>>> do that?
>
>> I said this in the same note:
>
>>>> We might change RFC 5229 to add that
>>>> variables can substitute for literal strings as well.  Or we might
>>>> decide that it's clear enough, and doesn't need changing.
>
>> ...and no one's specifically commented on it.  If we have
>> rough/vague/sorta-maybe consensus for making a small change to 5229,
>> I'll submit an erratum.  Otherwise, we ought to leave it as is.  I
>> particularly want to hear Ned's opinion, as well as, of course, those
>> of others.
>
> I just suggested some possible text. I don't think it's great, but  
> it's
> a start.
>
>> The change I would propose is to make the quoted text, above,  
>> change to this:
>
>>     This extension changes the semantics of quoted-string, multi- 
>> line-
>>     literal and multi-line-dotstuff found in [SIEVE], including any
>> literals that are
>>     directly specified in the grammar, to enable the inclusion of the
>> value of variables.
>
> This is too narrow. Any sort of syntax restriction, whether to a set  
> of
> specific strings, or to a time zone, or whatever, could possibly be  
> construed
> as not allowed variable usage. What needs to be conveyed is that  
> these syntax
> restrictions apply to the _result_ of variable substitution if such
> substitutions are used.

Certainly the result of a variable expansion in a syntax-restricted  
parameter must be checked to conform to that syntax after the expansion.

>> As far as I can tell, that is the only place in RFC 5229 that says
>> anything about what variables can substitute for.
>
> Agreed.
>

There are parameters that restrict against variable expansion, but  
they are specified one-off in each document.

Aaron 
  

From alexey.melnikov@isode.com  Mon Oct  5 11:28:15 2009
Return-Path: <alexey.melnikov@isode.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 7104D28C27E for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 11:28:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.51
X-Spam-Level: 
X-Spam-Status: No, score=-2.51 tagged_above=-999 required=5 tests=[AWL=0.089,  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 5liVINEubO4r for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 11:28:14 -0700 (PDT)
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by core3.amsl.com (Postfix) with ESMTP id 6819328C276 for <sieve@ietf.org>; Mon,  5 Oct 2009 11:28:14 -0700 (PDT)
Received: from [172.16.2.156] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <Sso7GwB9YcPk@rufus.isode.com>; Mon, 5 Oct 2009 19:29:48 +0100
Message-ID: <4ACA3AF8.50008@isode.com>
Date: Mon, 05 Oct 2009 19:29:12 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Ned Freed <ned.freed@mrochek.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <01NEIUWV9HXG00004A@mauve.mrochek.com>
In-Reply-To: <01NEIUWV9HXG00004A@mauve.mrochek.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: barryleiba@computer.org, sieve@ietf.org
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 18:28:15 -0000

Ned Freed wrote:

>Again, the place to deal with this is in the variables specification. Something
>along the lines of "specifications for other Sieve extensions may employ ABNF
>or other syntax specification tools to restrict the allowed values of certain
>strings. When this is done it doesn't imploy that variable substitutions cannot
>take place. Rather, the ability for variable substitution to occur is linked to
>the string's role in the core Sieve grammer specified in RFC 5228". I can
>support this sort of erratum.
>  
>
Ok.


From NED+mta-filters@mauve.mrochek.com  Mon Oct  5 12:03:17 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 3380B3A6863 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 12:03:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.529
X-Spam-Level: 
X-Spam-Status: No, score=-2.529 tagged_above=-999 required=5 tests=[AWL=0.070,  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 u+xXGU+pm6re for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 12:03:16 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id 673203A6806 for <sieve@ietf.org>; Mon,  5 Oct 2009 12:03:16 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEJ33XLFOG0000IH@mauve.mrochek.com> for sieve@ietf.org; Mon, 5 Oct 2009 12:04:48 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEJ19RR0BK0000BF@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Mon, 05 Oct 2009 12:04:46 -0700 (PDT)
Date: Mon, 05 Oct 2009 11:52:35 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Mon, 05 Oct 2009 09:58:47 -0700" <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx>
To: Aaron Stone <aaron@serendipity.cx>
Message-id: <01NEJ33W052K0000BF@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed; delsp=yes
Content-transfer-encoding: 7BIT
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx>
Cc: sieveietforg <sieve@ietf.org>, Alexey Melnikov <alexey.melnikov@isode.com>, Barry Leiba <barryleiba.mailing.lists@gmail.com>, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 19:03:17 -0000

> >>     This extension changes the semantics of quoted-string, multi-
> >> line-
> >>     literal and multi-line-dotstuff found in [SIEVE], including any
> >> literals that are
> >>     directly specified in the grammar, to enable the inclusion of the
> >> value of variables.

> > This is too narrow. Any sort of syntax restriction, whether to a set
> > of
> > specific strings, or to a time zone, or whatever, could possibly be
> > construed
> > as not allowed variable usage. What needs to be conveyed is that
> > these syntax
> > restrictions apply to the _result_ of variable substitution if such
> > substitutions are used.

> Certainly the result of a variable expansion in a syntax-restricted
> parameter must be checked to conform to that syntax after the expansion.

Absolutely. The sequence is:

   (1) Syntax check of the core sieve grammar.
   (2) Perform variable expansion on the strings where it is appropriate.
   (3) Parameter-specific syntax checks.

> >> As far as I can tell, that is the only place in RFC 5229 that says
> >> anything about what variables can substitute for.
> >
> > Agreed.
> >

> There are parameters that restrict against variable expansion, but
> they are specified one-off in each document.

Indeed there are, but they are fairly uncommon (IMO they are actually too
uncommon - the body extension should have stated that variable substitutions
aren't allowed in search strings but did not). Explicit specification of such
uncommon exceptions is the right thing to be doing. Specification of the common
reality as it if was in fact uncommon is not.

				Ned

From barryleiba.mailing.lists@gmail.com  Mon Oct  5 14:16:44 2009
Return-Path: <barryleiba.mailing.lists@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 5B34828C232 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 14:16:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.516
X-Spam-Level: 
X-Spam-Status: No, score=-2.516 tagged_above=-999 required=5 tests=[AWL=0.083,  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 haR8YwU3o+Su for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 14:16:43 -0700 (PDT)
Received: from mail-gx0-f215.google.com (mail-gx0-f215.google.com [209.85.217.215]) by core3.amsl.com (Postfix) with ESMTP id 7900D28C0F3 for <sieve@ietf.org>; Mon,  5 Oct 2009 14:16:43 -0700 (PDT)
Received: by gxk7 with SMTP id 7so71082gxk.14 for <sieve@ietf.org>; Mon, 05 Oct 2009 14:18:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=iHhbQwhMOnnlbJIPlFFPdyItArdXRL2BwT2+a++QpdM=; b=BG0YUzoCyXrMdqW3LOJ5IzpDT//nVLhsIXW58GfEJzadZpRXO62zk2C/DCK3mMBX0r dVoiMHWIcA7/hP3gvO3WQwLQRFYhQ67Hopozr4SQStwgLNwEjIqHRdWBe3RDqi8TChmk nni4iHdrNpyET4fCYRW+bpx9e63R/GADqfZxo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=YAOhdj2kzOV1O22Glu3haDU0Lep0T+Cqc3HDmJtxwluQ2kTm+M7rlmzKnoGNB0ncmf MWBi+m+q9iidq/iX8EeHYiNxBhNlfG/xT3rGfnVjRFUTkrd4983xltEy/Ybp/GIJpOvF 3GBlhBR+U8mcfSB23E/LkRrye9BK0wyJlCw/E=
MIME-Version: 1.0
Received: by 10.150.20.1 with SMTP id 1mr895277ybt.4.1254777496279; Mon, 05  Oct 2009 14:18:16 -0700 (PDT)
In-Reply-To: <01NEJ33W052K0000BF@mauve.mrochek.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx> <01NEJ33W052K0000BF@mauve.mrochek.com>
Date: Mon, 5 Oct 2009 17:18:16 -0400
Message-ID: <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com>
From: Barry Leiba <barryleiba.mailing.lists@gmail.com>
To: Ned Freed <ned.freed@mrochek.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: sieveietforg <sieve@ietf.org>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: barryleiba@computer.org
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: Mon, 05 Oct 2009 21:16:44 -0000

> Explicit specification of such
> uncommon exceptions is the right thing to be doing. Specification of the
> common reality as it if was in fact uncommon is not.

And no one is suggesting doing the latter.  Relax on that point.  All
we're talking about here is making sure that 5229 is clear with
respect to the core 5228 syntax.

But I still contend the definition in 5229 of what bits of the core
5228 syntax can be replaced by variables isn't sufficiently clear.
Unfortunately, (1) we all know what we meant, and (2) neither of us
has yet come up with text that cleanly fixes the issue.

As an aside, there *is* an unarguable erratum in 5229: where the text
says "multi-line-dotstuff" it should be "multiline-dotstart", and
where it says "multi-line-literal" it should say "multiline-literal".

For an example of the problem of clarity, let's look at an example from 5229:

          fileinto "INBOX.lists.${2}"; stop;

I contend that's not valid from a strict reading of the grammar,
though we clearly want to allow it.  We've said that a variable can
stand in for a "quoted-string", but we did not say it could stand in
for a PORTION of a quoted string -- specifically, for a quoted-text
construction (and I'm not sure even that would do it, given the 5228
grammar).

I'll also note that since we don't include "number" in the
constructions that can be substituted, we can't use variables in the
"size" test, for example.  So this is syntactically invalid:

       if size :over ${max} {
           discard;
       }

I'm not sure whether or not that was intended.

Barry

From guenther+mtafilters@sendmail.com  Mon Oct  5 14:51:57 2009
Return-Path: <guenther+mtafilters@sendmail.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 0F8D228C0F3 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 14:51:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 WKFJRtflZI+n for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 14:51:56 -0700 (PDT)
Received: from spork.sendmail.com (tls.sendmail.com [209.246.26.41]) by core3.amsl.com (Postfix) with ESMTP id 1BB053A6407 for <sieve@ietf.org>; Mon,  5 Oct 2009 14:51:56 -0700 (PDT)
Received: from [10.210.202.29] ([10.210.202.29]) (authenticated bits=0) by spork.sendmail.com (Switch-3.4.1/Switch-3.4.1) with ESMTP id n95LrPig016594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Oct 2009 14:53:27 -0700
X-BATV: Sendmail BATV Filter v0.4.0.dev spork.sendmail.com n95LrPig016594
X-DKIM: Sendmail DKIM Filter v2.5.6 spork.sendmail.com n95LrPig016594
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sendmail.com; s=spork.dkim; t=1254779609; bh=Y/nw4/CP52KDWWPRnob3uMWn+FspvYgo2uXa /BsCL2E=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID: References:MIME-Version:Content-Type; b=nWsgl8y1qsBn4gvNggtRBAvDu9 MG5W4S5TfvxoyCv92tz4Rzu2OAHHkR+CpLhLWcDk4JX1F1MYdNlnf1uiDv4oEE9NLdP bzlcGwLQ/3NZWsH7kOTauHNr0UJIkudt89TKIctBiJmG2BG4aM0Wu2moRN7aik0M4Tj SjYfwTUOPZc=
X-DKIM: Sendmail DKIM Filter v2.5.6 spork.sendmail.com n95LrPig016594
Date: Mon, 5 Oct 2009 14:53:25 -0700
From: Philip Guenther <guenther+mtafilters@sendmail.com>
X-X-Sender: guenther@vanye.sendmail.com
To: barryleiba@computer.org
In-Reply-To: <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com>
Message-ID: <alpine.BSO.2.00.0910051445010.12975@vanye.sendmail.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx> <01NEJ33W052K0000BF@mauve.mrochek.com> <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com>
User-Agent: Alpine 2.00 (BSO 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Cc: sieveietforg <sieve@ietf.org>, Ned Freed <ned.freed@mrochek.com>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 21:51:57 -0000

On Mon, 5 Oct 2009, Barry Leiba wrote:
...
> But I still contend the definition in 5229 of what bits of the core
> 5228 syntax can be replaced by variables isn't sufficiently clear.
> Unfortunately, (1) we all know what we meant, and (2) neither of us
> has yet come up with text that cleanly fixes the issue.
> 
> As an aside, there *is* an unarguable erratum in 5229: where the text
> says "multi-line-dotstuff" it should be "multiline-dotstart", and
> where it says "multi-line-literal" it should say "multiline-literal".

Yep, those are clearly typos.


> For an example of the problem of clarity, let's look at an example from 
> 5229:
> 
>           fileinto "INBOX.lists.${2}"; stop;
> 
> I contend that's not valid from a strict reading of the grammar,
> though we clearly want to allow it.  We've said that a variable can
> stand in for a "quoted-string", but we did not say it could stand in
> for a PORTION of a quoted string -- specifically, for a quoted-text
> construction (and I'm not sure even that would do it, given the 5228
> grammar).

Umm, what?  5229, section 3p2 says:
   When a string is evaluated, substrings matching variable-ref SHALL be
   replaced by the value of variable-name.

*Substrings* matching variable-ref are replaced.  That seems to me to be 
an explict statement declaration that it "stands in" for a portion of a 
string.  Where do you see syntax or requirements that say that the entire 
string must match the variable-ref syntax?


> I'll also note that since we don't include "number" in the
> constructions that can be substituted, we can't use variables in the
> "size" test, for example.  So this is syntactically invalid:
> 
>        if size :over ${max} {
>            discard;
>        }
> 
> I'm not sure whether or not that was intended.

I seemed clear enough to me at the time.  The fact that we call out the 
syntax elements for quoted-string and multiline strings would seem to back 
up that people knew we were just talking about strings.


Philip Guenther


From barryleiba.mailing.lists@gmail.com  Mon Oct  5 15:16:37 2009
Return-Path: <barryleiba.mailing.lists@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 30C2B28B23E for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 15:16:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.517
X-Spam-Level: 
X-Spam-Status: No, score=-2.517 tagged_above=-999 required=5 tests=[AWL=0.082,  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 uruVKfP53g+i for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 15:16:36 -0700 (PDT)
Received: from mail-gx0-f215.google.com (mail-gx0-f215.google.com [209.85.217.215]) by core3.amsl.com (Postfix) with ESMTP id 59E9C28C278 for <sieve@ietf.org>; Mon,  5 Oct 2009 15:16:36 -0700 (PDT)
Received: by gxk7 with SMTP id 7so118214gxk.14 for <sieve@ietf.org>; Mon, 05 Oct 2009 15:18:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8gsXsklkZIgedlfrnCbdgiETaUV38Oskl9xTSlDtA2I=; b=Vv4wv9NJ46vdwMNGgPfA2b+3+hPf6wwqWBVbS86410VmNmlUsOkyxyLWKRh3TI5XZ8 MRUNsDbq8HKMwTUZh3Xfa8Y2Z25axj5xuretloWxs0CiCKCxXnNnn8wkNv3UoQ+CKa/p N9xTXjnI0vJG/kvjwMrfTCfqm9oHSBqNnjvUM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=ACf28qgJS8ZQDf7n/8J7MS+8Lve3qE5slsmQLdUG2nlcKzUE9gmroQWS3LXMqQ9A64 ylRwWnRi6K2jVtHSvQb1CLzakcZ7QL3+bQSr2GmD6tlird2wLsKj1jpTSqSJOi7fOo2K 3uvPV6mkAxLtmTYDsr7/bvZ5Et6+DWvHY5GYM=
MIME-Version: 1.0
Received: by 10.151.25.7 with SMTP id c7mr908285ybj.236.1254781086668; Mon, 05  Oct 2009 15:18:06 -0700 (PDT)
In-Reply-To: <alpine.BSO.2.00.0910051445010.12975@vanye.sendmail.com>
References: <20090928143651.GB31810@schlund.de> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx> <01NEJ33W052K0000BF@mauve.mrochek.com> <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com> <alpine.BSO.2.00.0910051445010.12975@vanye.sendmail.com>
Date: Mon, 5 Oct 2009 18:18:06 -0400
Message-ID: <6c9fcc2a0910051518p32277b33kca98d8f9091b3ed5@mail.gmail.com>
From: Barry Leiba <barryleiba.mailing.lists@gmail.com>
To: Philip Guenther <guenther+mtafilters@sendmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: Ned Freed <ned.freed@mrochek.com>, sieveietforg <sieve@ietf.org>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: barryleiba@computer.org
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: Mon, 05 Oct 2009 22:16:37 -0000

> =A0 When a string is evaluated, substrings matching variable-ref SHALL be
> =A0 replaced by the value of variable-name.
>
> *Substrings* matching variable-ref are replaced. =A0That seems to me to b=
e
> an explict statement declaration that it "stands in" for a portion of a
> string.

Yes, good.  I'd missed interpreting that, in the mess I was looking
at.  That's good.  I think we are, indeed, set on this, then, and no
clarification (other than fixing the typos in the syntax names) is
needed.

>> I'll also note that since we don't include "number" in the
>> constructions that can be substituted, we can't use variables in the
>> "size" test, for example. =A0So this is syntactically invalid:
>>
>> =A0 =A0 =A0 =A0if size :over ${max} {
>> =A0 =A0 =A0 =A0 =A0 =A0discard;
>> =A0 =A0 =A0 =A0}
>>
>> I'm not sure whether or not that was intended.
>
> I seemed clear enough to me at the time. =A0The fact that we call out the
> syntax elements for quoted-string and multiline strings would seem to bac=
k
> up that people knew we were just talking about strings.

I don't remember discussing it at all, so I'm not sure whether we
intended it or not.  Because the size test is the only thing affected
by this, it could easily have been an oversight (our other use of
numbers, as in :count and :importance, puts them in as strings).

Does anyone else remember specific discussion of variables not
substituting for numbers?  Do we care?

Barry

From NED+mta-filters@mauve.mrochek.com  Mon Oct  5 15:28:30 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 DA51228C289 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 15:28:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.534
X-Spam-Level: 
X-Spam-Status: No, score=-2.534 tagged_above=-999 required=5 tests=[AWL=0.065,  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 Hyd-5mNVAqiZ for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 15:28:30 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id 1195F3A679C for <sieve@ietf.org>; Mon,  5 Oct 2009 15:28:30 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEJAAECHCW0003SV@mauve.mrochek.com> for sieve@ietf.org; Mon, 5 Oct 2009 15:30:04 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEJ19RR0BK0000BF@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Mon, 05 Oct 2009 15:30:00 -0700 (PDT)
Date: Mon, 05 Oct 2009 15:25:35 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Mon, 05 Oct 2009 18:18:06 -0400" <6c9fcc2a0910051518p32277b33kca98d8f9091b3ed5@mail.gmail.com>
To: Barry Leiba <barryleiba.mailing.lists@gmail.com>
Message-id: <01NEJAACP7TK0000BF@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=ISO-8859-1
Content-transfer-encoding: 8BIT
References: <20090928143651.GB31810@schlund.de> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx> <01NEJ33W052K0000BF@mauve.mrochek.com> <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com> <alpine.BSO.2.00.0910051445010.12975@vanye.sendmail.com> <6c9fcc2a0910051518p32277b33kca98d8f9091b3ed5@mail.gmail.com>
Cc: Ned Freed <ned.freed@mrochek.com>, sieveietforg <sieve@ietf.org>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 22:28:31 -0000

> >   When a string is evaluated, substrings matching variable-ref SHALL be
> >   replaced by the value of variable-name.
> >
> > *Substrings* matching variable-ref are replaced.  That seems to me to be
> > an explict statement declaration that it "stands in" for a portion of a
> > string.

> Yes, good.  I'd missed interpreting that, in the mess I was looking
> at.  That's good.  I think we are, indeed, set on this, then, and no
> clarification (other than fixing the typos in the syntax names) is
> needed.

> >> I'll also note that since we don't include "number" in the
> >> constructions that can be substituted, we can't use variables in the
> >> "size" test, for example.  So this is syntactically invalid:
> >>
> >>        if size :over ${max} {
> >>            discard;
> >>        }
> >>
> >> I'm not sure whether or not that was intended.
> >
> > I seemed clear enough to me at the time.  The fact that we call out the
> > syntax elements for quoted-string and multiline strings would seem to back
> > up that people knew we were just talking about strings.

> I don't remember discussing it at all, so I'm not sure whether we
> intended it or not.  Because the size test is the only thing affected
> by this, it could easily have been an oversight (our other use of
> numbers, as in :count and :importance, puts them in as strings).

> Does anyone else remember specific discussion of variables not
> substituting for numbers?  Do we care?

It did briefly come up at one point. I believe the consensus can be accurately
described as, "Meh."

				Ned

P.S. Numbers have certainly been a minority taste in Sieve arguments, but there
is at least one other place where they are used: vacation :days.

From NED+mta-filters@mauve.mrochek.com  Mon Oct  5 15:30:31 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 1BAB43A686E for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 15:30:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.538
X-Spam-Level: 
X-Spam-Status: No, score=-2.538 tagged_above=-999 required=5 tests=[AWL=0.061,  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 3peHzykl-e0I for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 15:30:29 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id 0F8153A6407 for <sieve@ietf.org>; Mon,  5 Oct 2009 15:30:29 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEJACUDEXS0003SV@mauve.mrochek.com> for sieve@ietf.org; Mon, 5 Oct 2009 15:32:02 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEJ19RR0BK0000BF@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Mon, 05 Oct 2009 15:31:59 -0700 (PDT)
Date: Mon, 05 Oct 2009 15:31:11 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Mon, 05 Oct 2009 14:53:25 -0700" <alpine.BSO.2.00.0910051445010.12975@vanye.sendmail.com>
To: Philip Guenther <guenther+mtafilters@sendmail.com>
Message-id: <01NEJACSKIWE0000BF@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN
Content-transfer-encoding: 7BIT
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx> <01NEJ33W052K0000BF@mauve.mrochek.com> <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com> <alpine.BSO.2.00.0910051445010.12975@vanye.sendmail.com>
Cc: Ned Freed <ned.freed@mrochek.com>, barryleiba@computer.org, sieveietforg <sieve@ietf.org>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 22:30:31 -0000

> On Mon, 5 Oct 2009, Barry Leiba wrote:
> ...
> > But I still contend the definition in 5229 of what bits of the core
> > 5228 syntax can be replaced by variables isn't sufficiently clear.
> > Unfortunately, (1) we all know what we meant, and (2) neither of us
> > has yet come up with text that cleanly fixes the issue.
> >
> > As an aside, there *is* an unarguable erratum in 5229: where the text
> > says "multi-line-dotstuff" it should be "multiline-dotstart", and
> > where it says "multi-line-literal" it should say "multiline-literal".

> Yep, those are clearly typos.


> > For an example of the problem of clarity, let's look at an example from
> > 5229:
> >
> >           fileinto "INBOX.lists.${2}"; stop;
> >
> > I contend that's not valid from a strict reading of the grammar,
> > though we clearly want to allow it.  We've said that a variable can
> > stand in for a "quoted-string", but we did not say it could stand in
> > for a PORTION of a quoted string -- specifically, for a quoted-text
> > construction (and I'm not sure even that would do it, given the 5228
> > grammar).

> Umm, what?  5229, section 3p2 says:
>    When a string is evaluated, substrings matching variable-ref SHALL be
>    replaced by the value of variable-name.

> *Substrings* matching variable-ref are replaced.  That seems to me to be
> an explict statement declaration that it "stands in" for a portion of a
> string.  Where do you see syntax or requirements that say that the entire
> string must match the variable-ref syntax?


> > I'll also note that since we don't include "number" in the
> > constructions that can be substituted, we can't use variables in the
> > "size" test, for example.  So this is syntactically invalid:
> >
> >        if size :over ${max} {
> >            discard;
> >        }
> >
> > I'm not sure whether or not that was intended.

> I seemed clear enough to me at the time.  The fact that we call out the
> syntax elements for quoted-string and multiline strings would seem to back
> up that people knew we were just talking about strings.

In case it isn't obvious, I will also point out that this is a change to core
Sieve syntax. That's a very big deal and not a change to be considered lightly.

				Ned

From jhutz@cmu.edu  Mon Oct  5 16:25:32 2009
Return-Path: <jhutz@cmu.edu>
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 9FC7B3A68C1 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 16:25:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.006
X-Spam-Level: 
X-Spam-Status: No, score=-3.006 tagged_above=-999 required=5 tests=[AWL=-0.407, 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 zF964V7o-mLM for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 16:25:31 -0700 (PDT)
Received: from smtp01.srv.cs.cmu.edu (SMTP01.SRV.CS.CMU.EDU [128.2.217.196]) by core3.amsl.com (Postfix) with ESMTP id BBA2D3A68B3 for <sieve@ietf.org>; Mon,  5 Oct 2009 16:25:31 -0700 (PDT)
Received: from MINBAR.FAC.CS.CMU.EDU (MINBAR.FAC.CS.CMU.EDU [128.2.216.42]) (authenticated bits=0) by smtp01.srv.cs.cmu.edu (8.13.6/8.13.6) with ESMTP id n95NQt2T026103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Oct 2009 19:26:55 -0400 (EDT)
Date: Mon, 05 Oct 2009 19:26:55 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: NED+mta-filters@mauve.mrochek.com, Philip Guenther <guenther+mtafilters@sendmail.com>
Message-ID: <B9E18498338B0F5628A37CDE@minbar.fac.cs.cmu.edu>
In-Reply-To: <2357_1254781931_n95MWAwx019608_01NEJACSKIWE0000BF@mauve.mrochek.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx> <01NEJ33W052K0000BF@mauve.mrochek.com> <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com> <alpine.BSO.2.00.0910051445010.12975@vanye.sendmail.com> <2357_1254781931_n95MWAwx019608_01NEJACSKIWE0000BF@mauve.mrochek.com>
X-Mailer: Mulberry/4.0.8 (Linux/x86)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Scanned-By: mimedefang-cmuscs on 128.2.217.196
Cc: sieveietforg <sieve@ietf.org>, barryleiba@computer.org, Ned Freed <ned.freed@mrochek.com>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
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: Mon, 05 Oct 2009 23:25:32 -0000

--On Monday, October 05, 2009 03:31:11 PM -0700 
NED+mta-filters@mauve.mrochek.com wrote:

>> > I'll also note that since we don't include "number" in the
>> > constructions that can be substituted, we can't use variables in the
>> > "size" test, for example.  So this is syntactically invalid:
>> >
>> >        if size :over ${max} {
>> >            discard;
>> >        }
>> >
>> > I'm not sure whether or not that was intended.
>
>> I seemed clear enough to me at the time.  The fact that we call out the
>> syntax elements for quoted-string and multiline strings would seem to
>> back up that people knew we were just talking about strings.

I'd be inclined to agree.  The variables extension as published does not 
cover non-strings, and while it might be nice to be able to use variables 
in place of numbers, adding that feature would be a real change, not a mere 
correction to an oversight.


> In case it isn't obvious, I will also point out that this is a change to
> core Sieve syntax. That's a very big deal and not a change to be
> considered lightly.

Very true.  I think I'd sooner define a new test which works like size but 
uses a string.

-- Jeff

From barryleiba.mailing.lists@gmail.com  Mon Oct  5 16:44:16 2009
Return-Path: <barryleiba.mailing.lists@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 47C8E3A67B3 for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 16:44:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.52
X-Spam-Level: 
X-Spam-Status: No, score=-2.52 tagged_above=-999 required=5 tests=[AWL=0.079,  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 WHr67eyMrxXI for <sieve@core3.amsl.com>; Mon,  5 Oct 2009 16:44:15 -0700 (PDT)
Received: from mail-yw0-f183.google.com (mail-yw0-f183.google.com [209.85.211.183]) by core3.amsl.com (Postfix) with ESMTP id 45DB13A68B3 for <sieve@ietf.org>; Mon,  5 Oct 2009 16:44:15 -0700 (PDT)
Received: by ywh13 with SMTP id 13so3404758ywh.31 for <sieve@ietf.org>; Mon, 05 Oct 2009 16:45:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ZVIVPEuZKHfbu37kFW0vE4Cg6ncI0IsCoA21CVa6Atk=; b=lkARu6VYIu3PRSmRoozUoJuPZ1+MB4RzohmY338r6575fyzgoAIILK51J47HK7eeJp Q5r4Hc6y9DGmV1jqoQZmJOZSHy379ssgEzkV9BA7MNZZ+MAZo7TjdtNysrVFVP9qd00q WkI80lI20UbXDKVE/tqeBr9GrGzjFmygWykxA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=PcQ09D2X3scD/yrt2sUo+4CbKoL3ySnOuoNukK57CwPBigHXII/h/YtjpBiE/LJIop HmgHrH2DITs2X3wL3LOlYUuRianpJgORp1rXVtA8iRDuGQtozYn+z6CmzfD8nyDsF4sm t7tfMbJsXrIfOrHdH60NJFh/fPoo8uYfGZcN0=
MIME-Version: 1.0
Received: by 10.151.20.18 with SMTP id x18mr1127424ybi.7.1254786348535; Mon,  05 Oct 2009 16:45:48 -0700 (PDT)
In-Reply-To: <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com>
References: <20090928143651.GB31810@schlund.de> <6c9fcc2a0909281032g16368fdco2c94185e619380ce@mail.gmail.com> <01NE9GPFVRXE00B359@mauve.mrochek.com> <6c9fcc2a0909282155lad81ccfvae10a5462dbfe258@mail.gmail.com> <29d3c4cb0910011423s3eb0f4a5q159edf4b73404815@mail.gmail.com> <6c9fcc2a0910050626m4b2965b0o1d4c787d67b05171@mail.gmail.com> <01NEIV1RFUPS00004A@mauve.mrochek.com> <A613263E-867F-460D-969A-67D1C390C8C2@serendipity.cx> <01NEJ33W052K0000BF@mauve.mrochek.com> <6c9fcc2a0910051418y7c4a35e5oa8145d48229e306f@mail.gmail.com>
Date: Mon, 5 Oct 2009 19:45:48 -0400
Message-ID: <6c9fcc2a0910051645g2d1ed562o430c4c97a26f836d@mail.gmail.com>
From: Barry Leiba <barryleiba.mailing.lists@gmail.com>
To: Ned Freed <ned.freed@mrochek.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: sieveietforg <sieve@ietf.org>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [sieve] Notify (RFC 5435) questions
X-BeenThere: sieve@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: barryleiba@computer.org
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: Mon, 05 Oct 2009 23:44:16 -0000

OK, it looks like we're seeing consensus that we're OK, modulo this:

> As an aside, there *is* an unarguable erratum in 5229: where the text
> says "multi-line-dotstuff" it should be "multiline-dotstart", and
> where it says "multi-line-literal" it should say "multiline-literal".

So, I'll await further comment by Alexey and a consensus call from the
chairs, but I'll tentatively plan to submit an erratum to correct the
errors above, and nothing more.

Barry

From hannah@schlund.de  Tue Oct  6 08:54:15 2009
Return-Path: <hannah@schlund.de>
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 8621528C1D5 for <sieve@core3.amsl.com>; Tue,  6 Oct 2009 08:54:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.523
X-Spam-Level: 
X-Spam-Status: No, score=-5.523 tagged_above=-999 required=5 tests=[AWL=0.126,  BAYES_00=-2.599, HELO_EQ_DE=0.35, J_CHICKENPOX_45=0.6, RCVD_IN_DNSWL_MED=-4]
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 HtiLbxBsqWKE for <sieve@core3.amsl.com>; Tue,  6 Oct 2009 08:54:14 -0700 (PDT)
Received: from mxintern.schlund.de (mxintern.schlund.de [212.227.126.205]) by core3.amsl.com (Postfix) with ESMTP id 2BDFB28C1DC for <sieve@ietf.org>; Tue,  6 Oct 2009 08:53:53 -0700 (PDT)
Received: from [172.19.16.7] (helo=home.kundenserver.de) by mxintern.schlund.de with esmtp (envelope-from <hannah@schlund.de>) id 1MvCNu-0000iJ-8Y for sieve@ietf.org; Tue, 06 Oct 2009 17:55:30 +0200
Received: from hannah by home.kundenserver.de with local (Exim 3.36 #1) id 1MvCNu-0004Vo-00 for sieve@ietf.org; Tue, 06 Oct 2009 17:55:30 +0200
Date: Tue, 6 Oct 2009 17:55:30 +0200
From: Hannah Schroeter <hannah@schlund.de>
To: sieve@ietf.org
Message-ID: <20091006155529.GB30158@schlund.de>
Mail-Followup-To: sieve@ietf.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: Schlund + Partner AG
X-Virus-Scanned: Symantec AntiVirus Scan Engine
X-UI-Msg-Verification: fd7691170ce6f0538e97445915a70bb5
Subject: [sieve] Variable expansion issues
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: Tue, 06 Oct 2009 15:54:15 -0000

Hello!

I've read the recent mails.

I agree to the general gist that it's best to specify once and for all
in the variables extension (RFC 5229) that variables expand in every
string position unless explicitly specified otherwise and that
additional ABNF-like language in the other specifications means
restrictions on the string result *after* variable expansion.

However, there are a few places where I would like/have liked such an
explicitly stated restriction on variable expansion.

The variables extension (RFC 5229) *does* specify such a restriction on
require (though a bit indirectly: "The require clauses themselves are
not affected by this extension.", first paragraph in section 1, it'd be
more explicit if the language using the term "constant string" would've
been used on "require", too), and on "set" (section 4, "The name MUST be
a constant string").

I'd think, then, it'd be logically consequential to require *constant*
strings in other places where variable *names* are used, such as in
- Imap4flags (RFC 5232),
 * The hasflag test (unlike the "string" test it doesn't use
   interpolation but a variable name itself). I do *not* mean
   "list-of-flags", but "variable-list".
 * The setflag, addflag, removeflag actions (section 3.1 through 3.3),
   parameter "variablename" (I don't mean to talk about
   "list-of-flags"!). Here, "variablename" is just like "name" in
   the "set" action in RFC 5229, and "name" for "set" is required to
   be constant. It'd be non-consequential to allow variable names be
   given by other variables here, when RFC 5229 just does *not*
   allow that (indirect variable references).
- Similarly: draft-ietf-sieve-mime-loop-09.txt,
 * The "varname" parameter of the "extracttext" action isn't specified
   to be constant there. The same argument applies though.

This especially makes sense as the use of constant strings in "set" and
not allowing indirect variable references in the interpolation syntax
allows for statical analysis of how many and which variables are used.
That is thwarted if one allows other extensions to use variables in
variable *names*. I think there those changes would be virtually
necessary.

The other way of consistency would be to drop the restriction on
"set" and to allow indirect variable references on interpolation, too,
e.g. "${x_${bar}}", but then enforcing limits on the number on variables
used must be deferred to run-time generally.

In fact there are other places where at least *I* would rather like
*constant* strings (or even tags) to be used, like the match types of
the relational extension. (And in fact, the ABNF there *did* suggest
constant strings to me!) IMO, variables don't really buy you much there
and it just adds unneeded complexity to a Sieve engine that translates
the script (from a simple enumeration [e.g. C-style enum] of match types
to a much more complex data type, using a combination of an enumeration
[basic match types] and a Sieve string, but the latter only sometimes).

Kind regards,

Hannah.

From NED+mta-filters@mauve.mrochek.com  Tue Oct  6 09:53:35 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 1F4FC28C14B for <sieve@core3.amsl.com>; Tue,  6 Oct 2009 09:53:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.241
X-Spam-Level: 
X-Spam-Status: No, score=-2.241 tagged_above=-999 required=5 tests=[AWL=-0.242, BAYES_00=-2.599, J_CHICKENPOX_45=0.6]
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 h-6arYgaLWso for <sieve@core3.amsl.com>; Tue,  6 Oct 2009 09:53:34 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id 23B143A68A8 for <sieve@ietf.org>; Tue,  6 Oct 2009 09:53:34 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEKCVI3PA800052M@mauve.mrochek.com> for sieve@ietf.org; Tue, 6 Oct 2009 09:55:07 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NEJCM72YDC0000BF@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Tue, 06 Oct 2009 09:55:05 -0700 (PDT)
Date: Tue, 06 Oct 2009 09:03:46 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Tue, 06 Oct 2009 17:55:30 +0200" <20091006155529.GB30158@schlund.de>
To: Hannah Schroeter <hannah@schlund.de>
Message-id: <01NEKCVGKSCW0000BF@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN
Content-transfer-encoding: 7BIT
References: <20091006155529.GB30158@schlund.de>
Cc: sieve@ietf.org
Subject: Re: [sieve] Variable expansion issues
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: Tue, 06 Oct 2009 16:53:35 -0000

> Hello!

> I've read the recent mails.

> I agree to the general gist that it's best to specify once and for all
> in the variables extension (RFC 5229) that variables expand in every
> string position unless explicitly specified otherwise and that
> additional ABNF-like language in the other specifications means
> restrictions on the string result *after* variable expansion.

> However, there are a few places where I would like/have liked such an
> explicitly stated restriction on variable expansion.

> The variables extension (RFC 5229) *does* specify such a restriction on
> require (though a bit indirectly: "The require clauses themselves are
> not affected by this extension.", first paragraph in section 1, it'd be
> more explicit if the language using the term "constant string" would've
> been used on "require", too), and on "set" (section 4, "The name MUST be
> a constant string").

I actually disagreed with the exclusion of variables from the first argument to
set here. But that's water long since under the bridge.

> I'd think, then, it'd be logically consequential to require *constant*
> strings in other places where variable *names* are used, such as in
> - Imap4flags (RFC 5232),
>  * The hasflag test (unlike the "string" test it doesn't use
>    interpolation but a variable name itself). I do *not* mean
>    "list-of-flags", but "variable-list".
>  * The setflag, addflag, removeflag actions (section 3.1 through 3.3),
>    parameter "variablename" (I don't mean to talk about
>    "list-of-flags"!). Here, "variablename" is just like "name" in
>    the "set" action in RFC 5229, and "name" for "set" is required to
>    be constant. It'd be non-consequential to allow variable names be
>    given by other variables here, when RFC 5229 just does *not*
>    allow that (indirect variable references).
> - Similarly: draft-ietf-sieve-mime-loop-09.txt,
>  * The "varname" parameter of the "extracttext" action isn't specified
>    to be constant there. The same argument applies though.

Since I disagree with the exclusion of set, I also am opposed to this
expansion. And even if I were to agree to this in principle (which I don't),
I would still object to this change on the grounds that it makes
currently conforming implementation nonconformant for no good reason.

> This especially makes sense as the use of constant strings in "set" and
> not allowing indirect variable references in the interpolation syntax
> allows for statical analysis of how many and which variables are used.
> That is thwarted if one allows other extensions to use variables in
> variable *names*. I think there those changes would be virtually
> necessary.

I understand the logic behind such exclusions. I just don't agree that the
supposed benefits are worth the loss in flexibility.

> The other way of consistency would be to drop the restriction on
> "set" and to allow indirect variable references on interpolation, too,
> e.g. "${x_${bar}}", but then enforcing limits on the number on variables
> used must be deferred to run-time generally.

Doesn't follow. I think exclusion of indirect variable references in
expressions was a good thing, mostly because this is exactly the sort of thing
implementors mess up, but it went too far when it was applied to set, where
it's actually more work to implement the exclusion. However, now that set has
this exclusion, I think more substantial justification is needed to change it
now.

> In fact there are other places where at least *I* would rather like
> *constant* strings (or even tags) to be used, like the match types of
> the relational extension. (And in fact, the ABNF there *did* suggest
> constant strings to me!) IMO, variables don't really buy you much there
> and it just adds unneeded complexity to a Sieve engine that translates
> the script (from a simple enumeration [e.g. C-style enum] of match types
> to a much more complex data type, using a combination of an enumeration
> [basic match types] and a Sieve string, but the latter only sometimes).

While it's true that use cases for variables in relational parameters, or
comparator parameters, seem pretty limited if not entirely nonexistant, in the
absence of a problem this  has caused I don't think a change is justified.

Justification for me for making such a change in whether or not variables are
allowed would be a concrete use case where the change provides a significant
tangible implementation benefit. There may be several cases of this, but the
one I know of is in the body extension. The fact that variables are allowed  in
the search string means that body has to either be implemented using an
unlimited number of passes over the message or by performing extensive
preprocessing of the message (e.g., building a Patricia tree). This limitation
makes body effectively unimplementable in high performance environments. But
take away variable substitutions and you can precompute all the search strings
and implement body in a single pass. This IMO is sufficient justification to at
least consider not allowing variable substitutions in body search strings.

				Ned

From wwwrun@core3.amsl.com  Tue Oct  6 12:29:13 2009
Return-Path: <wwwrun@core3.amsl.com>
X-Original-To: sieve@ietf.org
Delivered-To: sieve@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 30) id E1B8C3A6833; Tue,  6 Oct 2009 12:29:13 -0700 (PDT)
X-idtracker: yes
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
Message-Id: <20091006192913.E1B8C3A6833@core3.amsl.com>
Date: Tue,  6 Oct 2009 12:29:13 -0700 (PDT)
Cc: Internet Architecture Board <iab@iab.org>, sieve mailing list <sieve@ietf.org>, sieve chair <sieve-chairs@tools.ietf.org>, RFC Editor <rfc-editor@rfc-editor.org>
Subject: [sieve] Protocol Action: 'Sieve Email Filtering: MIME part Tests, Iteration, Extraction, Replacement and Enclosure' to Proposed Standard
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: Tue, 06 Oct 2009 19:29:14 -0000

The IESG has approved the following document:

- 'Sieve Email Filtering: MIME part Tests, Iteration, Extraction, 
   Replacement and Enclosure '
   <draft-ietf-sieve-mime-loop-09.txt> as a Proposed Standard


This document is the product of the Sieve Mail Filtering Language Working Group. 

The IESG contact persons are Lisa Dusseault and Alexey Melnikov.

A URL of this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-sieve-mime-loop-09.txt

Technical Summary

This document defines extensions to the Sieve email filtering
language to permit analysis and manipulation of the MIME body parts
of an email message.

Working Group Summary

Majority of posted comments were addressed in the latest revision, for
the remaining there was no wide WG support in favor of changes.


Document Quality

At least 2 server vendors are interested in implementing extensions
specified in the document.

At least 6 people have reviewed the document.

Personnel

Aaron Stone is the document shepherd.  Lisa Dusseault is the sponsoring
AD.

RFC Editor Note

In Section 3, change the 2nd paragraph to read:

OLD:
   The iterator can be terminated prematurely by a new Sieve command,
   "break".

NEW:
   The iterator can be terminated prematurely by a new Sieve control
                                                             ^^^^^^^
   command, "break".

Add a new paragraph before the last paragraph of section 3:

   If no name is given in a "break" command (i.e. the :name is omitted),
   the break command terminates the closest enclosing loop.

In Section 4.1,
OLD
  When the ":mime" tagged argument is present in the "header" test, it
  will parse the MIME header lines in the message so that tests can be
  performed on specific elements.
NEW
 When the ":mime" tagged argument is present in the "header" test, it
 will parse the MIME header lines in the message so that tests can be
 performed on specific elements.  The ":anychild" tagged argument may
 only appear when the ":mime" tagged argument is present, and only
 modifies the semantics of the ":mime" tagged argument. That is, presence
 of the ":anychild" in absence of ":mime" is an error.

In Section 4.2, change the 5th paragraph to read:

OLD:
   That is,

      the use of "address" with no ":mime" and ":anychild" tagged
                           ^^^^^^^
      argument is the test defined in [RFC5228], i.e. it will *only*
              ^
      operate on top level header fields, whether it is inside
      "foreverypart" or not.

NEW:
   That is,

      the use of "address" when both the ":mime" and ":anychild" tagged
                           ^^^^^^^^^^^^^
      arguments are omitted is the test defined in [RFC5228],
              ^^^^^^^^^^^^^
      i.e. it will *only*
      operate on top level header fields, whether it is inside
      "foreverypart" or not.

In Section 4.3 change the 5th paragraph to read:

OLD:
   That is,

      the use of "exists" with no ":mime" and ":anychild" tagged
      argument is the test defined in [RFC5228], i.e. it will *only*
      operate on top level header fields, whether it is inside
      "foreverypart" or not.
NEW:
   That is,

      the use of "exists" when both the ":mime" and ":anychild" tagged
      arguments are omitted is the test defined in [RFC5228],
      i.e. it will *only*
      operate on top level header fields, whether it is inside
      "foreverypart" or not.


Also, please change "SIEVE" to "Sieve" (in 3 places in the document).


From stephan@rename-it.nl  Tue Oct 20 08:35:51 2009
Return-Path: <stephan@rename-it.nl>
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 A8F4C3A68B3 for <sieve@core3.amsl.com>; Tue, 20 Oct 2009 08:35:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.364
X-Spam-Level: ***
X-Spam-Status: No, score=3.364 tagged_above=-999 required=5 tests=[BAYES_40=-0.185, FH_RELAY_NODNS=1.451, HELO_EQ_NL=0.55, HELO_MISMATCH_NL=1.448, RDNS_NONE=0.1]
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 K2V6VoxFa1Sq for <sieve@core3.amsl.com>; Tue, 20 Oct 2009 08:35:51 -0700 (PDT)
Received: from drpepper.rename-it.nl (unknown [87.249.120.243]) by core3.amsl.com (Postfix) with ESMTP id E24943A688D for <sieve@ietf.org>; Tue, 20 Oct 2009 08:35:50 -0700 (PDT)
Received: from ewi1299.ewi.utwente.nl ([130.89.145.113]:1855) by drpepper.rename-it.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <stephan@rename-it.nl>) id 1N0Gkc-00046J-Pi; Tue, 20 Oct 2009 17:35:55 +0200
Message-ID: <4ADDD8D8.1020705@rename-it.nl>
Date: Tue, 20 Oct 2009 17:35:52 +0200
From: Stephan Bosch <stephan@rename-it.nl>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Ned Freed <ned.freed@mrochek.com>
References: <4A92B1DD.6030507@rename-it.nl> <01NCWC1C7J6M001ML6@mauve.mrochek.com> <4A92EA75.3010803@rename-it.nl> <01NCWM0ZI0IS001ML6@mauve.mrochek.com>
In-Reply-To: <01NCWM0ZI0IS001ML6@mauve.mrochek.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-RenameIT-MailScanner-SpamScore: -5.0 (-----)
X-RenameIT-MailScanner-SpamReport: Spam detection software, running on the system "drpepper.rename-it.nl", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email.  If you have any questions, see the administrator of that system for details. Content preview:  Hi Ned, Ned Freed wrote: >> Ned Freed wrote: >> >> One of the solutions I proposed is querying the available >> >> (single-drop) aliases in the background, requiring the >> >> implementation of a background alias lookup. Thus far, I haven't >> >> gotten around to implementing this. >> > >> > Or alternately, you can run all of the candidate addresses through >> > the alias process and see if any of them match the current recipient. > >> That is similar to what I mention above. > >> > There are lots of ways to skin this particular cat. >> I guess. Could you name a few more? Any suggestions are welcome :). > > Well, you could store the list of possible recipient addresses alongside > the sieve script, no need to look them up that way. Or you could squirrel > away the list of possible addresses coincident with the alias processing > the MTA does. > > The latter is what we do, more or less. > What do you mean exactly by 'you could squirrel away the list of possible addresses'? [...]  Content analysis details:   (-5.0 points, 5.0 required) pts rule name              description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] -0.6 AWL AWL: From: address is in the auto white-list
Cc: sieve@ietf.org
Subject: Re: [sieve] Possible abuse of variables with vacation extension.
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: Tue, 20 Oct 2009 15:35:51 -0000

Hi Ned,

Ned Freed wrote:
>> Ned Freed wrote:
>> >> One of the solutions I proposed is querying the available
>> >> (single-drop) aliases in the background, requiring the
>> >> implementation of a background alias lookup. Thus far, I haven't
>> >> gotten around to implementing this.
>> >
>> > Or alternately, you can run all of the candidate addresses through
>> > the alias process and see if any of them match the current recipient.
> 
>> That is similar to what I mention above.
> 
>> > There are lots of ways to skin this particular cat.
>> I guess. Could you name a few more? Any suggestions are welcome :).
> 
> Well, you could store the list of possible recipient addresses alongside
> the sieve script, no need to look them up that way. Or you could squirrel
> away the  list of possible addresses coincident with the alias processing
> the MTA does.
> 
> The latter is what we do, more or less.
> 
What do you mean exactly by 'you could squirrel away the list of 
possible addresses'?

Regards,

Stephan.

From NED+mta-filters@mauve.mrochek.com  Tue Oct 20 08:55:49 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 938BF3A68FA for <sieve@core3.amsl.com>; Tue, 20 Oct 2009 08:55:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 Kt9Ggsr81lNG for <sieve@core3.amsl.com>; Tue, 20 Oct 2009 08:55:48 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id C83AD3A6842 for <sieve@ietf.org>; Tue, 20 Oct 2009 08:55:48 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NF3UVTPTYO001KW6@mauve.mrochek.com> for sieve@ietf.org; Tue, 20 Oct 2009 08:55:50 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NF2XJNXWHS0000BI@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Tue, 20 Oct 2009 08:55:45 -0700 (PDT)
Date: Tue, 20 Oct 2009 08:39:30 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Tue, 20 Oct 2009 17:35:52 +0200" <4ADDD8D8.1020705@rename-it.nl>
To: Stephan Bosch <stephan@rename-it.nl>
Message-id: <01NF3UVQ9WGW0000BI@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
Content-transfer-encoding: 7BIT
References: <4A92B1DD.6030507@rename-it.nl> <01NCWC1C7J6M001ML6@mauve.mrochek.com> <4A92EA75.3010803@rename-it.nl> <01NCWM0ZI0IS001ML6@mauve.mrochek.com> <4ADDD8D8.1020705@rename-it.nl>
Cc: sieve@ietf.org, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [sieve] Possible abuse of variables with vacation extension.
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: Tue, 20 Oct 2009 15:55:49 -0000

> Hi Ned,

> Ned Freed wrote:
> >> Ned Freed wrote:
> >> >> One of the solutions I proposed is querying the available
> >> >> (single-drop) aliases in the background, requiring the
> >> >> implementation of a background alias lookup. Thus far, I haven't
> >> >> gotten around to implementing this.
> >> >
> >> > Or alternately, you can run all of the candidate addresses through
> >> > the alias process and see if any of them match the current recipient.
> >
> >> That is similar to what I mention above.
> >
> >> > There are lots of ways to skin this particular cat.
> >> I guess. Could you name a few more? Any suggestions are welcome :).
> >
> > Well, you could store the list of possible recipient addresses alongside
> > the sieve script, no need to look them up that way. Or you could squirrel
> > away the  list of possible addresses coincident with the alias processing
> > the MTA does.
> >
> > The latter is what we do, more or less.
> >
> What do you mean exactly by 'you could squirrel away the list of
> possible addresses'?

Alias processing means doing stuff like looking up addresses in some kind of
database. Those entries may have an entire list of alternate addresses in them,
and the cost of fetching those as part of the alias expansion operation and
storing them so they can be used for later vacation comparisons is extremely
low, where the chances of one of those addresses appearing in the message that
caused the alias lookup is rather high.

				Ned

From root@core3.amsl.com  Wed Oct 21 12:15:01 2009
Return-Path: <root@core3.amsl.com>
X-Original-To: sieve@ietf.org
Delivered-To: sieve@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id A5BE63A69DE; Wed, 21 Oct 2009 12:15:01 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20091021191501.A5BE63A69DE@core3.amsl.com>
Date: Wed, 21 Oct 2009 12:15:01 -0700 (PDT)
Cc: sieve@ietf.org
Subject: [sieve] I-D Action:draft-freed-sieve-in-xml-07.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: Wed, 21 Oct 2009 19:15:01 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Sieve Mail Filtering Language Working Group of the IETF.


	Title           : Sieve Email Filtering: Sieves and display directives in XML
	Author(s)       : N. Freed, S. Vedam
	Filename        : draft-freed-sieve-in-xml-07.txt
	Pages           : 33
	Date            : 2009-10-21

This document describes a way to represent Sieve email filtering
language scripts in XML.  Representing sieves in XML is intended not
as an alternate storage format for Sieve but rather as a means to
facilitate manipulation of scripts using XML tools.

The XML representation also defines additional elements that have no
counterparts in the regular Sieve language.  These elements are
intended for use by graphical user interfaces and provide facilities
for labeling or grouping sections of a script so they can be
displayed more conveniently.  These elements are represented as
specially structured comments in regular Sieve format.

Change History (to be removed prior to publication as an RFC

Changed representation of comments in XML to use a comment element.

Update references.

Added an IANA registration of a URN for the Sieve namespace.

Updated XML Schema to allow largely unrestricted use of material in
other namespaces.

Add compact Relax NG schema.

Updated example stylesheet to handle material in other namespaces.

Corrected stylesheet handling of <comment> elements.

Added a section defining the structured comment convention.

Moved the examples section to an appendix.

Added text to clarify that the examples in the various appendices are
in fact code components and may therefore be reused.

Added a section on validation requirements.

Clarified various editor requirements and trust issues, restricted
the use of "*/" in non-Sieve XML content.

Added XML reference.

Added a list of all presently defined controls, explained how unknown
controls would be handled.

Added a note about the need to remove quotes and other syntax
elements when converting to XML.

Added a note about the fact that different front ends employing
different medadata may not interopate with each other.
Added preamble and postamble containers for displaydata, comment, and
external elements in command blocks.  This addresses a unique
particle attribution constraint violation in XML schema.

Added information about the MIME loops extension defining two new
controls: foreverypart and break.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-freed-sieve-in-xml-07.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-freed-sieve-in-xml-07.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2009-10-21120118.I-D@ietf.org>


--NextPart--

From stephan@rename-it.nl  Thu Oct 22 08:26:30 2009
Return-Path: <stephan@rename-it.nl>
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 364503A6858 for <sieve@core3.amsl.com>; Thu, 22 Oct 2009 08:26:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.174
X-Spam-Level: **
X-Spam-Status: No, score=2.174 tagged_above=-999 required=5 tests=[AWL=1.190,  BAYES_05=-1.11, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545]
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 We-pRE8xZZvD for <sieve@core3.amsl.com>; Thu, 22 Oct 2009 08:26:29 -0700 (PDT)
Received: from drpepper.rename-it.nl (drpepper.rename-it.nl [87.249.120.243]) by core3.amsl.com (Postfix) with ESMTP id 697A13A6914 for <sieve@ietf.org>; Thu, 22 Oct 2009 08:26:28 -0700 (PDT)
Received: from ewi1299.ewi.utwente.nl ([130.89.145.113]:2480) by drpepper.rename-it.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <stephan@rename-it.nl>) id 1N0zYZ-0001Z4-CH; Thu, 22 Oct 2009 17:26:27 +0200
Message-ID: <4AE079A1.4010101@rename-it.nl>
Date: Thu, 22 Oct 2009 17:26:25 +0200
From: Stephan Bosch <stephan@rename-it.nl>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: NED+mta-filters@mauve.mrochek.com
References: <20091006155529.GB30158@schlund.de> <01NEKCVGKSCW0000BF@mauve.mrochek.com>
In-Reply-To: <01NEKCVGKSCW0000BF@mauve.mrochek.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-RenameIT-MailScanner-SpamScore: -4.8 (----)
X-RenameIT-MailScanner-SpamReport: No, score=-4.8 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00 autolearn=ham version=3.2.5
Cc: sieve@ietf.org
Subject: Re: [sieve] Variable expansion issues
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, 22 Oct 2009 15:26:30 -0000

Hi Ned,

NED+mta-filters@mauve.mrochek.com wrote:
> I actually disagreed with the exclusion of variables from the first argument to
> set here. But that's water long since under the bridge.
> 
[...]
> 
> Since I disagree with the exclusion of set, I also am opposed to this
> expansion. And even if I were to agree to this in principle (which I don't),
> I would still object to this change on the grounds that it makes
> currently conforming implementation nonconformant for no good reason.
> 
[...]
> 
> I understand the logic behind such exclusions. I just don't agree that the
> supposed benefits are worth the loss in flexibility.
 >

Although I tend to agree with your appreciation for flexibility, I also 
value consistency. My implementation does not support constructing 
variable names with variable substitutions anywhere, since I assumed all 
variable name arguments to have similar requirements as the set 
command's variable name argument (e.g. for hasflag). Now I am wondering 
whether I should implement support for this anyway. Did you?

I think consensus on issues like these is very important to guarantee 
interoperability.

Regards,

Stephan.

From NED+mta-filters@mauve.mrochek.com  Thu Oct 22 08:58:47 2009
Return-Path: <NED+mta-filters@mauve.mrochek.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 14B433A6A7F for <sieve@core3.amsl.com>; Thu, 22 Oct 2009 08:58:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 UvlbCfdUfoxu for <sieve@core3.amsl.com>; Thu, 22 Oct 2009 08:58:46 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by core3.amsl.com (Postfix) with ESMTP id 4D18D3A6A75 for <sieve@ietf.org>; Thu, 22 Oct 2009 08:58:46 -0700 (PDT)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NF6NKB9B6O0023TT@mauve.mrochek.com> for sieve@ietf.org; Thu, 22 Oct 2009 08:58:54 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01NF2XJNXWHS0000BI@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for sieve@ietf.org; Thu, 22 Oct 2009 08:58:51 -0700 (PDT)
Date: Thu, 22 Oct 2009 08:52:03 -0700 (PDT)
From: NED+mta-filters@mauve.mrochek.com
In-reply-to: "Your message dated Thu, 22 Oct 2009 17:26:25 +0200" <4AE079A1.4010101@rename-it.nl>
To: Stephan Bosch <stephan@rename-it.nl>
Message-id: <01NF6NK9J0DQ0000BI@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
Content-transfer-encoding: 7BIT
References: <20091006155529.GB30158@schlund.de> <01NEKCVGKSCW0000BF@mauve.mrochek.com> <4AE079A1.4010101@rename-it.nl>
Cc: sieve@ietf.org
Subject: Re: [sieve] Variable expansion issues
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, 22 Oct 2009 15:58:47 -0000

> Hi Ned,

> NED+mta-filters@mauve.mrochek.com wrote:
> > I actually disagreed with the exclusion of variables from the first argument to
> > set here. But that's water long since under the bridge.
> >
> [...]
> >
> > Since I disagree with the exclusion of set, I also am opposed to this
> > expansion. And even if I were to agree to this in principle (which I don't),
> > I would still object to this change on the grounds that it makes
> > currently conforming implementation nonconformant for no good reason.
> >
> [...]
> >
> > I understand the logic behind such exclusions. I just don't agree that the
> > supposed benefits are worth the loss in flexibility.
>  >

> Although I tend to agree with your appreciation for flexibility, I also
> value consistency. My implementation does not support constructing
> variable names with variable substitutions anywhere, since I assumed all
> variable name arguments to have similar requirements as the set
> command's variable name argument (e.g. for hasflag). Now I am wondering
> whether I should implement support for this anyway. Did you?

Well, I wouldn't go so far as to say "implement support", because that sounds
like a bunch of work. The routine in my implementation that computes parameter
values takes an argument specifying whether or not to perform variable
expansion in a given case. So for me changing the semantics so that, say, the
first argument of set allows variable expansions is simply a matter of changing
FALSE to TRUE in one call.

I even have the parameter set to TRUE for arguments to body, but if you
actually use a variable substitution in such an argument you're very likely to
get a run time error. As I explained previously, the alternative was not to
implement any form of body test.

				Ned

From rfc-editor@rfc-editor.org  Wed Oct 28 09:36:06 2009
Return-Path: <rfc-editor@rfc-editor.org>
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 C1F9B28C23C; Wed, 28 Oct 2009 09:36:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -16.928
X-Spam-Level: 
X-Spam-Status: No, score=-16.928 tagged_above=-999 required=5 tests=[AWL=0.071, BAYES_00=-2.599, J_CHICKENPOX_93=0.6, USER_IN_DEF_WHITELIST=-15]
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 n9DfZUPTzMLx; Wed, 28 Oct 2009 09:36:06 -0700 (PDT)
Received: from bosco.isi.edu (bosco.isi.edu [128.9.168.207]) by core3.amsl.com (Postfix) with ESMTP id 0CBC528C206; Wed, 28 Oct 2009 09:36:06 -0700 (PDT)
Received: by bosco.isi.edu (Postfix, from userid 70) id 5E18A3569DC; Wed, 28 Oct 2009 09:33:16 -0700 (PDT)
To: ietf-announce@ietf.org, rfc-dist@rfc-editor.org
From: rfc-editor@rfc-editor.org
Message-Id: <20091028163316.5E18A3569DC@bosco.isi.edu>
Date: Wed, 28 Oct 2009 09:33:16 -0700 (PDT)
Cc: sieve@ietf.org, rfc-editor@rfc-editor.org
Subject: [sieve] RFC 5703 on Sieve Email Filtering: MIME Part Tests, Iteration, Extraction, Replacement, and Enclosure
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: Wed, 28 Oct 2009 16:36:06 -0000

A new Request for Comments is now available in online RFC libraries.

        
        RFC 5703

        Title:      Sieve Email Filtering: MIME Part 
                    Tests, Iteration, Extraction, Replacement, 
                    and Enclosure 
        Author:     T. Hansen, C. Daboo
        Status:     Standards Track
        Date:       October 2009
        Mailbox:    tony+sieveloop@maillennium.att.com, 
                    cyrus@daboo.name
        Pages:      18
        Characters: 34718
        Updates/Obsoletes/SeeAlso:   None

        I-D Tag:    draft-ietf-sieve-mime-loop-09.txt

        URL:        http://www.rfc-editor.org/rfc/rfc5703.txt

This document defines extensions to the Sieve email filtering
language to permit analysis and manipulation of the MIME body parts
of an email message.  [STANDARDS TRACK]

This document is a product of the Sieve Mail Filtering Language Working Group of the IETF.

This is now a Proposed Standard Protocol.

STANDARDS TRACK: This document specifies an Internet standards track
protocol for the Internet community,and requests discussion and suggestions
for improvements.  Please refer to the current edition of the Internet
Official Protocol Standards (STD 1) for the standardization state and
status of this protocol.  Distribution of this memo is unlimited.

This announcement is sent to the IETF-Announce and rfc-dist lists.
To subscribe or unsubscribe, see
  http://www.ietf.org/mailman/listinfo/ietf-announce
  http://mailman.rfc-editor.org/mailman/listinfo/rfc-dist

For searching the RFC series, see http://www.rfc-editor.org/rfcsearch.html.
For downloading RFCs, see http://www.rfc-editor.org/rfc.html.

Requests for special distribution should be addressed to either the
author of the RFC in question, or to rfc-editor@rfc-editor.org.  Unless
specifically noted otherwise on the RFC itself, all RFCs are for
unlimited distribution.


The RFC Editor Team
USC/Information Sciences Institute


