From owner-ietf-mta-filters Wed Jun  1 07:54:02 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Es2Lr041709;
	Wed, 1 Jun 2005 07:54:02 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j51Es2KV041708;
	Wed, 1 Jun 2005 07:54:02 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from igw2.watson.ibm.com (igw2.watson.ibm.com [129.34.20.6])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Es1g1041697
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 07:54:01 -0700 (PDT)
	(envelope-from leiba@watson.ibm.com)
Received: from sp1n294en1.watson.ibm.com (sp1n294en1.watson.ibm.com [129.34.20.40])
	by igw2.watson.ibm.com (8.13.1/8.13.1/8.13.1-2005-04-25 igw) with ESMTP id j51EtDoX012006
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:55:13 -0400
Received: from sp1n294en1.watson.ibm.com (localhost [127.0.0.1])
	by sp1n294en1.watson.ibm.com (8.11.7-20030924/8.11.7/01-14-2004_2) with ESMTP id j51Ertk92460
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:53:55 -0400
Received: from mars (mars.watson.ibm.com [9.2.40.64])
	by sp1n294en1.watson.ibm.com (8.11.7-20030924/8.11.7/01-14-2004_1) with ESMTP id j51Ersd98230
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:53:54 -0400
Received: from saturn ([9.2.43.75]) by mars.watson.ibm.com
 ID IMFd1117637630.486; Wed, 01 Jun 2005 10:53:50 -0400
Message-ID: <429DCBFE.1070109@watson.ibm.com>
Date: Wed, 01 Jun 2005 10:53:50 -0400
From: Barry Leiba <leiba@watson.ibm.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ietf-mta-filters@imc.org
Subject: Re: NULL vs. ""
References: <NcEFWJGHPJM0mZugUqKvAQ.md5@prosecco.oryx.com>	 <c6QMvtcfjfUz7EgQAVGVLg.md5@prosecco.oryx.com>	 <1117193398.14545.12.camel@chico.njus.no>	 <+z3UjvPElTb9bVSsE4a/7w.md5@prosecco.oryx.com>	 <1117202740.14545.31.camel@chico.njus.no>	 <S90Lex7fK8hck6fBazNaXg.md5@prosecco.oryx.com> <42977CB9.1040506@psaux.com>	 <008201c5651b$ef375370$662c2a0a@rockliffe.com>	 <01LOV4LVX27U00004T@mauve.mrochek.com> <1117472147.5871.15.camel@chico.njus.no>
In-Reply-To: <1117472147.5871.15.camel@chico.njus.no>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


> On Mon, 2005-05-30 at 09:21 -0700, Ned Freed wrote:
>>>if anyof (header :is "Cc" "", not exists "Cc")
>>
>>This is actually clearer to read IMO, and is probably how I would code it if
>>I ever wanted such a test.

Indeed.  And so why don't we wrap up this too-long discussion this way?:
1. *Document* that string comparisons against headers MUST NOT match 
absent headers.
2. *Document* that the preferred way to test for a header that is either 
empty or absent is as Ned wrote above.
3. Move on.

Barry

--
Barry Leiba, Pervasive Computing Technology  (leiba@watson.ibm.com)
http://www.research.ibm.com/people/l/leiba
http://www.research.ibm.com/spam


From owner-ietf-mta-filters Wed Jun  1 08:22:34 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51FMY9D043992;
	Wed, 1 Jun 2005 08:22:34 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j51FMYpB043991;
	Wed, 1 Jun 2005 08:22:34 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51FMXqt043980
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 08:22:33 -0700 (PDT)
	(envelope-from ned.freed@mrochek.com)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243)
 id <01LOX713ZY4G00004T@mauve.mrochek.com> for ietf-mta-filters@imc.org; Wed,
 01 Jun 2005 08:22:18 -0700 (PDT)
Cc: ietf-mta-filters@imc.org
To: Barry Leiba <leiba@watson.ibm.com>
Message-id: <01LOXUUZ95Q000004T@mauve.mrochek.com>
Date: Wed, 01 Jun 2005 08:22:01 -0700 (PDT)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: NULL vs. ""
In-reply-to: "Your message dated Wed, 01 Jun 2005 10:53:50 -0400"
 <429DCBFE.1070109@watson.ibm.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
References: <NcEFWJGHPJM0mZugUqKvAQ.md5@prosecco.oryx.com>
 <c6QMvtcfjfUz7EgQAVGVLg.md5@prosecco.oryx.com>
 <1117193398.14545.12.camel@chico.njus.no>
 <+z3UjvPElTb9bVSsE4a/7w.md5@prosecco.oryx.com>
 <1117202740.14545.31.camel@chico.njus.no>
 <S90Lex7fK8hck6fBazNaXg.md5@prosecco.oryx.com> <42977CB9.1040506@psaux.com>
 <008201c5651b$ef375370$662c2a0a@rockliffe.com>
 <01LOV4LVX27U00004T@mauve.mrochek.com>
 <1117472147.5871.15.camel@chico.njus.no> <429DCBFE.1070109@watson.ibm.com>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>



> > On Mon, 2005-05-30 at 09:21 -0700, Ned Freed wrote:
> >>>if anyof (header :is "Cc" "", not exists "Cc")
> >>
> >>This is actually clearer to read IMO, and is probably how I would code it if
> >>I ever wanted such a test.

> Indeed.  And so why don't we wrap up this too-long discussion this way?:
> 1. *Document* that string comparisons against headers MUST NOT match
> absent headers.
> 2. *Document* that the preferred way to test for a header that is either
> empty or absent is as Ned wrote above.
> 3. Move on.

+1.

				Ned


From owner-ietf-mta-filters Wed Jun  1 08:44:05 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Fi5fD045705;
	Wed, 1 Jun 2005 08:44:05 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j51Fi5nE045704;
	Wed, 1 Jun 2005 08:44:05 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from pat.uio.no (IDENT:7411@pat.uio.no [129.240.130.16])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Fi434045697
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 08:44:04 -0700 (PDT)
	(envelope-from kjetilho@ifi.uio.no)
Received: from mail-mx6.uio.no ([129.240.10.47])
	by pat.uio.no with esmtp (Exim 4.43)
	id 1DdVNw-0004M8-NP
	for ietf-mta-filters@imc.org; Wed, 01 Jun 2005 17:44:00 +0200
Received: from 80.80-202-166.nextgentel.com ([80.202.166.80] helo=chico.njus.no)
	by mail-mx6.uio.no with esmtpsa (TLSv1:RC4-MD5:128)
	(Exim 4.43)
	id 1DdVNr-0001Bk-V8
	for ietf-mta-filters@imc.org; Wed, 01 Jun 2005 17:43:56 +0200
Subject: security review of variables
From: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
To: ietf-mta-filters@imc.org
Content-Type: text/plain; charset=ISO-8859-1
Date: Wed, 01 Jun 2005 17:43:50 +0200
Message-Id: <1117640630.5871.182.camel@chico.njus.no>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1 
X-UiO-Spam-info: not spam, SpamAssassin (score=-3.15, required 12,
	autolearn=disabled, AWL 1.80, FORGED_RCVD_HELO 0.05,
	UIO_MAIL_IS_INTERNAL -5.00)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id j51Fi434045699
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


this is an attempt to summarise the feedback received from security
reviews by Love Hörnquist Åstrand, Sam Hartman and Jeffrey Hutzelman,
and with input from Alexey Melnikov.

the main (only) issue was the behaviour of length limits.

        how does modifiers to SET interact with length limits?  current
        modifiers can't increase length.

        variables which exceed implementation limits are silently
        truncated when stored.  there is no way for a script to discover
        implementation limits and take appropriate action.  among the
        reviewers, there was consensus that at a minimum the security
        aspects of this behaviour needs to be documented.  an
        alternative suggestion was to establish a namespace where such
        implementation values can be looked up.
        
        there were worries that other extensions would want some other
        failure mode than "silent truncation" when such limits are
        reached.  I'd like to comment that the limit only concerns
        storing a value, ie. is restricted to the action SET and the
        implicit storage of match variables from tests.  Sieve currently
        has no specified limit to the static length of string or
        multi-line, and it's unclear to me whether a conformant
        implementation is allowed to impose such limits.

non-security objections:

        Love Åstrand thinks restricting variable names to the English
        alphabet is a real problem.

        Jeffrey Hutzelman thinks a mechanism for quoting characters with
        special meaning in regex should be available.  this could be a
        modifier for SET, e.g. :quoteregex.

        Jeffrey Hutzelman thinks the text regarding interaction with
        regex should be in whichever of variables or regex is published
        last, so that what is a normative reference isn't mislabeled as
        informative.
-- 
Kjetil T.



From owner-ietf-mta-filters Wed Jun  1 09:10:45 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51GAj6o048089;
	Wed, 1 Jun 2005 09:10:45 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j51GAjxt048087;
	Wed, 1 Jun 2005 09:10:45 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51GAirj048080
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 09:10:45 -0700 (PDT)
	(envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.175] (shiny.isode.com [62.3.217.250]) 
          by rufus.isode.com via TCP (internal) with ESMTPA;
          Wed, 1 Jun 2005 17:10:39 +0100
Message-ID: <429DDE01.1090703@isode.com>
Date: Wed, 01 Jun 2005 17:10:41 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2)
            Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
CC: ietf-mta-filters@imc.org
Subject: Re: security review of variables
References: <1117640630.5871.182.camel@chico.njus.no>
In-Reply-To: <1117640630.5871.182.camel@chico.njus.no>
MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-transfer-encoding: 8bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Kjetil Torgrim Homme wrote:

>non-security objections:
>
>        Love Åstrand thinks restricting variable names to the English
>        alphabet is a real problem.  
>
Our discussion left me with impression that this is not an issue.


From owner-ietf-mta-filters Wed Jun  1 10:13:31 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51HDVSJ052419;
	Wed, 1 Jun 2005 10:13:31 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j51HDVTp052418;
	Wed, 1 Jun 2005 10:13:31 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51HDTCO052410
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:13:30 -0700 (PDT)
	(envelope-from ned.freed@mrochek.com)
MIME-version: 1.0
Content-transfer-encoding: 8BIT
Content-type: TEXT/PLAIN; charset=ISO-8859-1
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243)
 id <01LOX713ZY4G00004T@mauve.mrochek.com> for ietf-mta-filters@imc.org; Wed,
 01 Jun 2005 10:13:19 -0700 (PDT)
Cc: ietf-mta-filters@imc.org
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
Message-id: <01LOXYQLK7G600004T@mauve.mrochek.com>
Date: Wed, 01 Jun 2005 09:04:43 -0700 (PDT)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: security review of variables
In-reply-to: "Your message dated Wed, 01 Jun 2005 17:43:50 +0200"
 <1117640630.5871.182.camel@chico.njus.no>
References: <1117640630.5871.182.camel@chico.njus.no>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>



> this is an attempt to summarise the feedback received from security
> reviews by Love Hörnquist Åstrand, Sam Hartman and Jeffrey Hutzelman,
> and with input from Alexey Melnikov.

> the main (only) issue was the behaviour of length limits.

>         how does modifiers to SET interact with length limits?  current
>         modifiers can't increase length.

>         variables which exceed implementation limits are silently
>         truncated when stored.  there is no way for a script to discover
>         implementation limits and take appropriate action.  among the
>         reviewers, there was consensus that at a minimum the security
>         aspects of this behaviour needs to be documented.

Well, the obvious security issue here is that a script that pulls data out of a
header and then tests it may be able to be bypassed by putting a bunch of
leading material in the header so truncation occurs and the test fails. This is
something of a stretch, however, given that most such tests can be bypassed
simply by omitting the data being tested for entirely.

I'm curious what other supposed security issues there are with truncation. I'm
also skeptical that this is as big a mountain as they seem to think - sure
seems more like a molehill to me.

>         an
>         alternative suggestion was to establish a namespace where such
>         implementation values can be looked up.
        
Alternative to what? In order for such information to be useful a script has to
be able to employ it meaningfully. So I find that there's an implementation
limit of foo. What do I do now? Code around it? If the limit can be coded
around without too much trouble why not code it that way for better portability
in the first place? Finding another implementation with a larger limit is
rarely an option... this really doesn't seem to accomplish much.

The only case I can imagine where this might be useful is when I know in
advance the length of the data I'm dealing with and want to check and see if it
can be processed. But the minimum maximums seem sufficient to cover this case,
so I'm left with this "alternative" in fact being no solution to any useful
problem.

It seems to me the useful alternative would be to have a way of testing to see
if truncation has occured. This way you could code tests to see if the
dataa being processed is abnormally large and respond accordingly.

But even this is of extremely marginal utility, for two reasons. First, string
sizes can already be checked, and it probably makes more sense to see if
something is abnormally long rather than checking to see if it has bumped up
against a truncation limit. Second, the availability of such a mechanism does
not mean it will actually be used, and my guess is that any such feature (and
this includes the namespace stuff) will see little if any actual use. And
rarely used features are security risks in and of themselves.

>         there were worries that other extensions would want some other
>         failure mode than "silent truncation" when such limits are
>         reached.  I'd like to comment that the limit only concerns
>         storing a value, ie. is restricted to the action SET and the
>         implicit storage of match variables from tests.  Sieve currently
>         has no specified limit to the static length of string or
>         multi-line, and it's unclear to me whether a conformant
>         implementation is allowed to impose such limits.

> non-security objections:

>         Love Åstrand thinks restricting variable names to the English
>         alphabet is a real problem.

Funny, it doesn't seem to have exactly been a showstopper in a truly vast
number of programming languages. Absent specifics as to why this is a real
problem, IMO this should simply be ignored.

>         Jeffrey Hutzelman thinks a mechanism for quoting characters with
>         special meaning in regex should be available.  this could be a
>         modifier for SET, e.g. :quoteregex.

This, OTOH, is IMO a good idea, although we need :quotematches more than we
need :quoteregex. I support adding this to the variables extension.
Implementation is only a few lines of code, and it can and will be used.

>         Jeffrey Hutzelman thinks the text regarding interaction with
>         regex should be in whichever of variables or regex is published
>         last, so that what is a normative reference isn't mislabeled as
>         informative.

I guess I have no problem with this, but then again I personally find a lot of
the tension and angst over reference classification to be overdone.

				Ned


From owner-ietf-mta-filters Wed Jun  1 12:52:17 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j51JqHTu065055;
	Wed, 1 Jun 2005 12:52:17 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j51JqHhw065054;
	Wed, 1 Jun 2005 12:52:17 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mv.mv.com (osmium.mv.net [199.125.85.152])
	by above.proper.com (8.12.11/8.12.9) with SMTP id j51JqG93065047
	for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 12:52:16 -0700 (PDT)
	(envelope-from mem@mv.mv.com)
Received: (qmail 59266 invoked by uid 101); 1 Jun 2005 15:52:15 -0400
From: "Mark E. Mallett" <mem@mv.mv.com>
Date: Wed, 1 Jun 2005 15:52:15 -0400
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
Cc: ietf-mta-filters@imc.org
Subject: Re: security review of variables
Message-ID: <20050601195215.GN43116@osmium.mv.net>
References: <1117640630.5871.182.camel@chico.njus.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1117640630.5871.182.camel@chico.njus.no>
User-Agent: Mutt/1.4.2.1i
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


On Wed, Jun 01, 2005 at 05:43:50PM +0200, Kjetil Torgrim Homme wrote:
>         Jeffrey Hutzelman thinks a mechanism for quoting characters with
>         special meaning in regex should be available.  this could be a
>         modifier for SET, e.g. :quoteregex.

Agreed (and with :quotematches as Ned noted later); I've run into this
issue myself.

mm


From owner-ietf-mta-filters Mon Jun  6 12:47:35 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j56JlZTx063811;
	Mon, 6 Jun 2005 12:47:35 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j56JlZNO063810;
	Mon, 6 Jun 2005 12:47:35 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j56JlWeE063796
	for <ietf-mta-filters@imc.org>; Mon, 6 Jun 2005 12:47:35 -0700 (PDT)
	(envelope-from dinaras@cnri.reston.va.us)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA03679;
	Mon, 6 Jun 2005 15:47:30 -0400 (EDT)
Message-Id: <200506061947.PAA03679@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: i-d-announce@ietf.org
Cc: ietf-mta-filters@imc.org
From: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-sieve-3028bis-02.txt
Date: Mon, 06 Jun 2005 15:47:30 -0400
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


--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: An Email Filtering Language
	Author(s)	: T. Showalter, P. Guenther
	Filename	: draft-ietf-sieve-3028bis-02.txt
	Pages		: 38
	Date		: 2005-6-6
	
This document describes a language for filtering email messages at
   time of final delivery.  It is designed to be implementable on either
   a mail client or mail server.  It is meant to be extensible, simple,
   and independent of access protocol, mail architecture, and operating
   system.  It is suitable for running on a mail server where users may
   not be allowed to execute arbitrary programs, such as on black box
   Internet Message Access Protocol (IMAP) servers, as it has no
   variables, loops, or ability to shell out to external programs.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-sieve-3028bis-02.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of the message.  
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.


Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-sieve-3028bis-02.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-sieve-3028bis-02.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
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: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<2005-6-6161940.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-sieve-3028bis-02.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-sieve-3028bis-02.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<2005-6-6161940.I-D@ietf.org>

--OtherAccess--

--NextPart--



From owner-ietf-mta-filters Fri Jun 24 04:40:58 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5OBewcc002434;
	Fri, 24 Jun 2005 04:40:58 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5OBewhP002433;
	Fri, 24 Jun 2005 04:40:58 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5OBevSm002413
	for <ietf-mta-filters@imc.org>; Fri, 24 Jun 2005 04:40:58 -0700 (PDT)
	(envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.176] (shiny.isode.com [62.3.217.250]) 
          by rufus.isode.com via TCP (internal) with ESMTPA;
          Fri, 24 Jun 2005 12:40:56 +0100
Message-ID: <42BBF149.90601@isode.com>
Date: Fri, 24 Jun 2005 12:40:57 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2)
            Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: MTA filtering mailing list <ietf-mta-filters@imc.org>
Subject: Sieve WG meeting in Paris
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


I've requested a 2 hours slot at Paris IETF. I haven't seen the agenda yet.
Can I please ask editors to reply directly to me and indicate if the are 
planning to come, not planning to come or still deciding.

Thanks,
Alexey


From owner-ietf-mta-filters Wed Jun 29 00:55:15 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T7tFqR046189;
	Wed, 29 Jun 2005 00:55:15 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5T7tFmD046187;
	Wed, 29 Jun 2005 00:55:15 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T7tE9n046148
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 00:55:14 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5T7tCiW001585
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK)
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 00:55:12 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5T7tCiW001585
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=oWRRXIcqdWeQLzd9mfzcygf7+8h+tVF5Xp50qj5nRmkN97XqhVkrcSzqmMKl4Qycq
	+qyOlea0yxaffP+7GheMV4eWVVEk08nZp+Z7IShqHk3Dp69U1p938ndWW1qwcZsE2hl
	i/8Yx0yRtWtgsKdKLJSF+/nSpZD3AUTXuHxB7Sk=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5T7tC71006934
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 00:55:12 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506290755.j5T7tC71006934@lab.smi.sendmail.com>
To: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: 3028bis open issue #3: require 2047 decoding?
Date: Wed, 29 Jun 2005 00:55:12 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>



Currently, 3028bis, section 2.7.2 is unchanged from RFC 3028:

----
2.7.2.   Comparisons Across Character Sets

   All Sieve scripts are represented in UTF-8, but messages may involve
   a number of character sets.  In order for comparisons to work across
   character sets, implementations SHOULD implement the following
   behavior:

      Implementations decode header charsets to UTF-8.  Two strings are
      considered equal if their UTF-8 representations are identical.
      Implementations should decode charsets represented in the forms
      specified by [MIME] for both message headers and bodies.
      Implementations must be capable of decoding US-ASCII, ISO-8859-1,
      the ASCII subset of ISO-8859-* character sets, and UTF-8.

   If implementations fail to support the above behavior, they MUST
   conform to the following:

      No two strings can be considered equal if one contains octets
      greater than 127.
----

That is, support for RFC 2047 is only a SHOULD and not a MUST.  Do
we want to leave that as is or should it be made stricter, with a
MUST support RFC 2047, MUST support conversion of US-ASCII and UTF-8
and SHOULD support conversion of ISO-8859-1 and the US-ASCII subset
of ISO-8859-*?



This question arose from a query from Bob Johannessen during the
WGLC of the 'body' extension on that extension's requirements for
charset conversion.  Those requirements currently read:

   MIME parts identified as using charsets other than UTF-8 as
   defined in [UTF-8] SHOULD be converted to UTF-8 prior to the match.
   A conversion from US-ASCII to UTF-8 MUST be supported.
   If an implementation does not support conversion of a given
   charset to UTF-8, it MAY compare against the US-ASCII subset
   of the transfer-decoded character data instead.  Characters from
   documents tagged with charsets that the local implementation
   cannot convert to UTF-8 and text from mistagged documents MAY
   be omitted or processed according to local conventions.

Now, I had always read that paragraph as requiring support for
matching UTF-8 against text parts labelled as being in UTF-8 or
US-ASCII; treating a UTF-8 part as if it was US-ASCII with some
unmatching octets was banned.  On reflection, I now think that
paragraph should be read as a giving practically the same choice
as section 2.7.2 in the base-spec and that it should therefore be
simply replaced with a reference to that section in the base-spec,
ala:
	Implementations MUST use the same rules for comparisons
	against body parts in charsets other than UTF-8 as they use
	for comparisons against header fields in such charsets (c.f.
	[SIEVE] section 2.7.2).


What are peoples' opinions on the base-spec and body-extension
requirements in this area?


Philip Guenther


From owner-ietf-mta-filters Wed Jun 29 01:06:39 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T86dMX056486;
	Wed, 29 Jun 2005 01:06:39 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5T86doo056484;
	Wed, 29 Jun 2005 01:06:39 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T86drF056438
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:06:39 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5T86aE2004262
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK)
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:06:36 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5T86aE2004262
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=oKGqXjB68ydafUWtvHc09uqTRl2go7o+uFEraTtdWGa8d5Q+/J8Efc3+PuklY5G4J
	C36sFeHrtex0ILGx0FkudAMaglWRKD/vRtV7NO7E7xiOEC1TW1oIp/L1L0+WxWKc6Ec
	AsAMHrP9ckU2DlVz5r5ZjsATA/+STQX/rWc+b6g=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5T86aiA007721
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:06:36 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
To: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: 3028bis open issue #2: unknown envelope-part names
Date: Wed, 29 Jun 2005 01:06:36 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>



The behavior of the 'envelope' test does not appear to be defined
for envelope-parts other than 'from' and 'to', ala:
	envelope "cc" "bob@example.com"

Should that be a required error, required to be silently ignored,
or implementation defined?

(The only opinion other than my own that I've heard on this felt
that it should be a required error, so if no one speaks up, that's
the way it'll go.)


Philip Guenther


From owner-ietf-mta-filters Wed Jun 29 01:19:47 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T8JlgR068196;
	Wed, 29 Jun 2005 01:19:47 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5T8Jl8e068195;
	Wed, 29 Jun 2005 01:19:47 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T8Jkk6068183
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:19:46 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5T8JkOA006762
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK)
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:19:46 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5T8JkOA006762
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=uonSIFVtZyotW3PtT+5+175oK4lf9eNYMhXI7bhf5+G8eRXf4Hh4Qmn3bjPwjsd2E
	BaTtrqHW+sfty9aGwMEAqHcWd73tLgPWPoRU6RegAHYCalOjAZbE7/e/zAj3viDr1FJ
	u+5BnaW+6eQDIEXs9+bJ62bj5SWj/OiECs/aSbw=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5T8JkRs008773
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:19:46 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com>
To: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: 3028bis open issue #1: envelope-sender argument for redirect?
Date: Wed, 29 Jun 2005 01:19:46 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


There was a suggestion that the 'redirect' action should provide a
way to specify the envelope-from address used when the message was
redirected.

While a nice idea, no one has said anything further on it, which
says to me that we shouldn't add it as a new requirement on
implementations.

I'm therefore removing this item from the open-issues list; if
someone wants that control they should write up an extension that
adds it.


Philip Guenther


From owner-ietf-mta-filters Wed Jun 29 05:52:20 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TCqKJ4049247;
	Wed, 29 Jun 2005 05:52:20 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5TCqJY2049246;
	Wed, 29 Jun 2005 05:52:20 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from msa.uoa.gr (msa.uoa.gr [195.134.100.72])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TCqIEi049076
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 05:52:19 -0700 (PDT)
	(envelope-from avel@noc.uoa.gr)
Received: by MSA with id A128EA9BCC17082B69623F6B4496C902CDA5AB3C
Received: from null.noc.uoa.gr (null.noc.uoa.gr [195.134.100.40])
	(authenticated bits=0)
	by msa.uoa.gr (8.12.11/8.12.11) with ESMTP id j5TCqBjT018277
	(version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 15:52:11 +0300 (EEST)
Subject: Re: 3028bis open issue #2: unknown envelope-part names
From: Alexandros Vellis <avel@noc.uoa.gr>
To: ietf-mta-filters@imc.org
In-Reply-To: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
Content-Type: text/plain
Organization: National & Kapodistrian University of Athens
Date: Wed, 29 Jun 2005 15:53:25 +0300
Message-Id: <1120049606.10806.17.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 
Content-Transfer-Encoding: 7bit
X-UoAMSAId: A128EA9BCC17082B69623F6B4496C902CDA5AB3C
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


On Wed, 2005-06-29 at 01:06 -0700, Philip Guenther wrote:
> 
> The behavior of the 'envelope' test does not appear to be defined
> for envelope-parts other than 'from' and 'to', ala:
> 	envelope "cc" "bob@example.com"
> 
> Should that be a required error, required to be silently ignored,
> or implementation defined?
> 
> (The only opinion other than my own that I've heard on this felt
> that it should be a required error, so if no one speaks up, that's
> the way it'll go.)

I would actually vote for 'implementation defined' (first choice) or
'silently ignored' (2nd). :-)

Why? I was thinking of the LMTP AUTH that can appear in an {S|L}MTP
transaction:

MAIL FROM=<> AUTH=<user>

this could be mostly useful it it could be referenced to inside the
Sieve scripts.

Since it can be considered part of the envelope, one could use something
like :envelope "auth" "is" "avel" , and in the end use in the Sieve
script the information that a user was authenticated when sending a
message.

So in the end, "auth" should be allowed to be there, apart from 'from'
and 'to'.

OK, you could allow just that one through too, but what if more such
envelope "extensions" appear in the future? A bit difficult but
still. :)

Alexandros



From owner-ietf-mta-filters Wed Jun 29 06:18:17 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDIG2X083760;
	Wed, 29 Jun 2005 06:18:16 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5TDIGQU083758;
	Wed, 29 Jun 2005 06:18:16 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDIFlY083673
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 06:18:15 -0700 (PDT)
	(envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.179] (shiny.isode.com [62.3.217.250]) 
          by rufus.isode.com via TCP (internal) with ESMTPA;
          Wed, 29 Jun 2005 14:18:04 +0100
Message-ID: <42C29F8B.9040203@isode.com>
Date: Wed, 29 Jun 2005 14:18:03 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2)
            Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Alexandros Vellis <avel@noc.uoa.gr>
CC: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain>
In-Reply-To: <1120049606.10806.17.camel@localhost.localdomain>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Alexandros Vellis wrote:

>On Wed, 2005-06-29 at 01:06 -0700, Philip Guenther wrote:
>  
>
>>The behavior of the 'envelope' test does not appear to be defined
>>for envelope-parts other than 'from' and 'to', ala:
>>	envelope "cc" "bob@example.com"
>>
>>Should that be a required error, required to be silently ignored,
>>or implementation defined?
>>
>>(The only opinion other than my own that I've heard on this felt
>>that it should be a required error, so if no one speaks up, that's
>>the way it'll go.)
>>    
>>
>
>I would actually vote for 'implementation defined' (first choice) or
>'silently ignored' (2nd). :-)
>
>Why? I was thinking of the LMTP AUTH that can appear in an {S|L}MTP
>transaction:
>
>MAIL FROM=<> AUTH=<user>
>
>this could be mostly useful it it could be referenced to inside the
>Sieve scripts.
>
>Since it can be considered part of the envelope, one could use something
>like :envelope "auth" "is" "avel" , and in the end use in the Sieve
>script the information that a user was authenticated when sending a
>message.
>
>So in the end, "auth" should be allowed to be there, apart from 'from'
>and 'to'.
>  
>
I agree. In fact this is what Cyrus Sieve does already.

>OK, you could allow just that one through too, but what if more such
>envelope "extensions" appear in the future? A bit difficult but
>still. :)
>  
>
I still think that an implementation should treat an unrecognized 
envelope part as an error. Scripts should not be using a feature without 
a proper require statement.

Alexey


From owner-ietf-mta-filters Wed Jun 29 06:28:20 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDSKZ3096253;
	Wed, 29 Jun 2005 06:28:20 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5TDSKgj096252;
	Wed, 29 Jun 2005 06:28:20 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDSJ3c096125
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 06:28:19 -0700 (PDT)
	(envelope-from ken@oceana.com)
Received: from [192.168.137.140] (69-161-65-27.bflony.adelphia.net [69.161.65.27])
	(authenticated bits=0)
	by eagle.oceana.com (8.13.2/8.13.2) with ESMTP id j5TDSBOG019059
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 09:28:11 -0400 (EDT)
Message-ID: <42C2A25F.8060900@oceana.com>
Date: Wed, 29 Jun 2005 09:30:07 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain>
In-Reply-To: <1120049606.10806.17.camel@localhost.localdomain>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0 (BAYES_00)
X-Scanned-By: MIMEDefang 2.39
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Alexandros Vellis wrote:

> On Wed, 2005-06-29 at 01:06 -0700, Philip Guenther wrote:
> 
>>The behavior of the 'envelope' test does not appear to be defined
>>for envelope-parts other than 'from' and 'to', ala:
>>	envelope "cc" "bob@example.com"
>>
>>Should that be a required error, required to be silently ignored,
>>or implementation defined?
>>
>>(The only opinion other than my own that I've heard on this felt
>>that it should be a required error, so if no one speaks up, that's
>>the way it'll go.)
> 
> 
> I would actually vote for 'implementation defined' (first choice) or
> 'silently ignored' (2nd). :-)
> 
> Why? I was thinking of the LMTP AUTH that can appear in an {S|L}MTP
> transaction:
> 
> MAIL FROM=<> AUTH=<user>
> 
> this could be mostly useful it it could be referenced to inside the
> Sieve scripts.
> 
> Since it can be considered part of the envelope, one could use something
> like :envelope "auth" "is" "avel" , and in the end use in the Sieve
> script the information that a user was authenticated when sending a
> message.
> 
> So in the end, "auth" should be allowed to be there, apart from 'from'
> and 'to'.
> 
> OK, you could allow just that one through too, but what if more such
> envelope "extensions" appear in the future? A bit difficult but
> still. :)

FWIW, CMU Sieve already supports "auth" as an envelope test.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp


From owner-ietf-mta-filters Wed Jun 29 09:27:56 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TGRuSG004645;
	Wed, 29 Jun 2005 09:27:56 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5TGRutN004641;
	Wed, 29 Jun 2005 09:27:56 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from msa.uoa.gr (msa.uoa.gr [195.134.100.72])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TGRshx004474
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 09:27:55 -0700 (PDT)
	(envelope-from avel@noc.uoa.gr)
Received: by MSA with id 1B39FB5B8B039B47051A67426318A465997A60B6
Received: from amy (ppp3-adsl-79.ath.forthnet.gr [62.1.226.79])
	(authenticated bits=0)
	by msa.uoa.gr (8.12.11/8.12.11) with ESMTP id j5TGRlN5019555
	(version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 19:27:48 +0300 (EEST)
Subject: Re: 3028bis open issue #2: unknown envelope-part names
From: Alexandros Vellis <avel@noc.uoa.gr>
To: ietf-mta-filters@imc.org
In-Reply-To: <42C29F8B.9040203@isode.com>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
	 <1120049606.10806.17.camel@localhost.localdomain>
	 <42C29F8B.9040203@isode.com>
Content-Type: text/plain
Organization: National & Kapodistrian University of Athens
Date: Wed, 29 Jun 2005 19:27:47 +0300
Message-Id: <1120062467.5234.34.camel@amy>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.2 
Content-Transfer-Encoding: 7bit
X-UoAMSAId: 1B39FB5B8B039B47051A67426318A465997A60B6
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Alexey Melnikov wrote:

> I still think that an implementation should treat an unrecognized 
> envelope part as an error. Scripts should not be using a feature without 
> a proper require statement.

I don't feel strongly about my vote, and I'm not a guru of SMTP
protocols either, so as long as the 'auth' is added in the
clarification, that's fine with me too. 8-)

Alexandros



From owner-ietf-mta-filters Wed Jun 29 10:44:02 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5THi23B084445;
	Wed, 29 Jun 2005 10:44:02 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5THi2ix084443;
	Wed, 29 Jun 2005 10:44:02 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5THi14n084428
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 10:44:01 -0700 (PDT)
	(envelope-from tjs@psaux.com)
Received: from [66.228.163.20] (trustwho.corp.yahoo.com [66.228.163.20])
	by mrout1.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id j5THfW2s015364;
	Wed, 29 Jun 2005 10:41:33 -0700 (PDT)
Message-ID: <42C2DD4C.3000302@psaux.com>
Date: Wed, 29 Jun 2005 10:41:32 -0700
From: Tim Showalter <tjs@psaux.com>
User-Agent: Mozilla Thunderbird 1.0 (X11/20050215)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Alexey Melnikov <alexey.melnikov@isode.com>
CC: Alexandros Vellis <avel@noc.uoa.gr>, ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com>
In-Reply-To: <42C29F8B.9040203@isode.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


>> So in the end, "auth" should be allowed to be there, apart from 'from'
>> and 'to'.
>>
> I agree. In fact this is what Cyrus Sieve does already.
> 
>> OK, you could allow just that one through too, but what if more such
>> envelope "extensions" appear in the future? A bit difficult but
>> still. :)
>>  
>>
> I still think that an implementation should treat an unrecognized 
> envelope part as an error. Scripts should not be using a feature without 
> a proper require statement.

I agree wholeheartedly.

Tim


From owner-ietf-mta-filters Wed Jun 29 14:01:36 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TL1awN090188;
	Wed, 29 Jun 2005 14:01:36 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5TL1avo090187;
	Wed, 29 Jun 2005 14:01:36 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TL1ZCB090128
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 14:01:35 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5TL1Wa4026881
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK);
	Wed, 29 Jun 2005 14:01:32 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5TL1Wa4026881
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=kuOfD2JlJR3ziX4Yx8Rnuqhz1XSTK68RHHmB7iqxe1ptTVp2dSqoV+1W2Eha/Fzoy
	Ri6jfomPP4I9yfqxR6+gVBN23v/+nSPaJyawNRGTz09bhFFgm4+ihMcNtqxA89eFgub
	EOW71VNNYdIpIetUNJ7Fa9aqIsLYwEu5c+DFoHM=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5TL1Vic070498;
	Wed, 29 Jun 2005 14:01:32 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
To: Alexandros Vellis <avel@noc.uoa.gr>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: 3028bis open issue #2: unknown envelope-part names 
In-reply-to: <1120062467.5234.34.camel@amy> 
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com> 
	<1120062467.5234.34.camel@amy> 
Date: Wed, 29 Jun 2005 14:01:31 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Alexandros Vellis <avel@noc.uoa.gr> writes:
>Alexey Melnikov wrote:

>> I still think that an implementation should treat an unrecognized 
>> envelope part as an error. Scripts should not be using a feature without 
>> a proper require statement.
>
>I don't feel strongly about my vote, and I'm not a guru of SMTP
>protocols either, so as long as the 'auth' is added in the
>clarification, that's fine with me too. 8-)

I think we have to choose among the following:

A) leave the behavior undefined if a script uses envelope-parts other
   than "from" and "to"
   CONS: such parts (ala "auth") effectively become undeclared, unnamed
         extensions; scripts can't depend on support; no way to test for
         support (e.g., in managesieve)
   PROS: breaks neither existing implementations nor existing scripts

B) require implementations to reject parts other than "from" and "to"
   unless declared via some new extension
   CONS: makes Cyrus implementation non-conforming; breaks scripts that
         haven't been updated to require the new extension
   PROS: <standard "declare before use" argument>, scripts using "auth"
         aren't portable anyway

C) require implementations to ignore all unknown parts, or maybe just
   "auth"
   CONS: breaks lots of implementations; script behavior could change if
         an implementation started recognizing new parts
   PROS: doesn't break existing scripts using "auth"

D) roll "auth" into the base-spec
   CONS: breaks lots of implementations; have to define what it means in
         implementations that don't have access to SMTP/LMTP AUTH info;
         why have an extension mechanism if we're not going to use it?
   PROS: doesn't break Cyrus implementation or scripts using "auth"


It sounds like you're suggesting (C), yes?  Do yo have any comments on
the pros and cons in the above list or the tradeoffs among them?


Philip Guenther


From owner-ietf-mta-filters Wed Jun 29 14:49:31 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TLnV8R041888;
	Wed, 29 Jun 2005 14:49:31 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5TLnV6g041887;
	Wed, 29 Jun 2005 14:49:31 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout2.freenet.de (mout2.freenet.de [194.97.50.155])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TLnT4a041838
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 14:49:30 -0700 (PDT)
	(envelope-from michael@freenet-ag.de)
Received: from [194.97.50.138] (helo=mx0.freenet.de)
	by mout2.freenet.de with esmtpa (Exim 4.52)
	id 1DnkQy-0000x0-KP
	for ietf-mta-filters@imc.org; Wed, 29 Jun 2005 23:49:28 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6])
	by mx0.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3)
	id 1DnkQy-0003zv-GX
	for ietf-mta-filters@imc.org; Wed, 29 Jun 2005 23:49:28 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3)
	id 1DnkQw-00089B-5o
	for ietf-mta-filters@imc.org; Wed, 29 Jun 2005 23:49:26 +0200
To: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
Message-Id: <E1DnkQw-00089B-5o@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Wed, 29 Jun 2005 23:49:26 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


> D) roll "auth" into the base-spec
>    CONS: breaks lots of implementations; have to define what it means in
>          implementations that don't have access to SMTP/LMTP AUTH info;
>          why have an extension mechanism if we're not going to use it?
>    PROS: doesn't break Cyrus implementation or scripts using "auth"

Authenticated SMTP is common these days and being able to use it in the
envelope test makes sense to me.  The Exim implementation currently
rejects anything but "to" and "from", but I had no problem to add
"auth", thus having one broken implementation less.  Although I don't
like how Cyrus silently introduced it, it _is_ useful and having to use
"envelope-auth" besides "envelope" looks awkward to me.  Opinions from
other implementations? Would the change be a problem?

But: What does "auth" actually do? Does it contain the authenticating ID
or the authenticated sender? Neither is a problem for me, I just have
to know.  Implementations that can not access this information could
behave as with comparing header fields not present in the message.

> B) require implementations to reject parts other than "from" and "to"
>    unless declared via some new extension
>    CONS: makes Cyrus implementation non-conforming; breaks scripts that
>          haven't been updated to require the new extension
>    PROS: <standard "declare before use" argument>, scripts using "auth"
>          aren't portable anyway

If we decide that D is not an option, this is my second choice.  Silently
ignoring mistakes never pays off in the long run, so let's stay safe
and clean.  Cyrus should not have introduced a new feature that way,
but indeed RFC 3028 was not clear how keys other than "from" and "to"
MUST be processed.

I don't like A and C at all.

Michael


From owner-ietf-mta-filters Wed Jun 29 15:16:44 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TMGiG8072034;
	Wed, 29 Jun 2005 15:16:44 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5TMGiHN072031;
	Wed, 29 Jun 2005 15:16:44 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mv.mv.com (osmium.mv.net [199.125.85.152])
	by above.proper.com (8.12.11/8.12.9) with SMTP id j5TMGga5071990
	for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 15:16:43 -0700 (PDT)
	(envelope-from mem@mv.mv.com)
Received: (qmail 61979 invoked by uid 101); 29 Jun 2005 18:16:42 -0400
From: "Mark E. Mallett" <mem@mv.mv.com>
Date: Wed, 29 Jun 2005 18:16:42 -0400
To: Philip Guenther <guenther+mtafilters@sendmail.com>
Cc: Alexandros Vellis <avel@noc.uoa.gr>, ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
Message-ID: <20050629221642.GA56916@osmium.mv.net>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com> <1120062467.5234.34.camel@amy> <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
User-Agent: Mutt/1.4.2.1i
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


On Wed, Jun 29, 2005 at 02:01:31PM -0700, Philip Guenther wrote:
> 
> B) require implementations to reject parts other than "from" and "to"
>    unless declared via some new extension

I'd go with this one.  I've silently ignored others up until this
point but have had a long-standing private implementation note that
it needs to be resolved, vis:

TODO    /* Not really clear if this is an error- but for now we'll
           just treat it as a non-match or a zero count.
        */


>    CONS: makes Cyrus implementation non-conforming; breaks scripts that
>          haven't been updated to require the new extension

There are other dimensions to the question, of course.  One is whether a
prohibition under (B) will be a "SHOULD NOT" or a "MUST NOT" (MUST NOT
seems better to me, but SHOULD NOT will work better as a retroactive
recommendation); another is whether the spec should have an opinion on
whether the error should be detected at parse/compile time or at
execution time (I'd either go with either the latter or unspecified).

mm


From owner-ietf-mta-filters Thu Jun 30 00:28:14 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U7SE31029107;
	Thu, 30 Jun 2005 00:28:14 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5U7SE1G029106;
	Thu, 30 Jun 2005 00:28:14 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from msa.uoa.gr (msa.uoa.gr [195.134.100.72])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U7SCLA028966
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 00:28:13 -0700 (PDT)
	(envelope-from avel@noc.uoa.gr)
Received: by MSA with id 1D24E7A8D7EC790644DB6ECA6B5DB89B604DC6D2
Received: from null.noc.uoa.gr (null.noc.uoa.gr [195.134.100.40])
	(authenticated bits=0)
	by msa.uoa.gr (8.12.11/8.12.11) with ESMTP id j5U7S5Tf021838
	(version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 10:28:05 +0300 (EEST)
Subject: Re: 3028bis open issue #2: unknown envelope-part names
From: Alexandros Vellis <avel@noc.uoa.gr>
To: ietf-mta-filters@imc.org
In-Reply-To: <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
	 <1120049606.10806.17.camel@localhost.localdomain>
	 <42C29F8B.9040203@isode.com>  <1120062467.5234.34.camel@amy>
	 <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
Content-Type: text/plain
Organization: National & Kapodistrian University of Athens
Date: Thu, 30 Jun 2005 10:29:22 +0300
Message-Id: <1120116562.15827.24.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 
Content-Transfer-Encoding: 7bit
X-UoAMSAId: 1D24E7A8D7EC790644DB6ECA6B5DB89B604DC6D2
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


On Wed, 2005-06-29 at 14:01 -0700, Philip Guenther wrote:

> B) require implementations to reject parts other than "from" and "to"
>    unless declared via some new extension
>    CONS: makes Cyrus implementation non-conforming; breaks scripts that
>          haven't been updated to require the new extension
>    PROS: <standard "declare before use" argument>, scripts using "auth"
>          aren't portable anyway

I believe portability is not so much of an issue, as much as what
decisions a GUI program can make when building Sieve scripts.

As a Sieve client, I would very much like an extra capability being
returned, 'envelope-auth', and use the LMTP auth. If it's not there, I
can fall back to other means of verification, such as RFC822 headers.

The question whether the same capability MUST be require'd in the script
itself is something that you know better than me if it should be
enforced. I don't have any strong opinions on the <standard "declare
before use" argument>. And since I haven't implemented 'envelope' yet at
all, I don't worry about backward compatibility and thus shouldn't have
a say on this particular issue. :)

Alexandros Vellis



From owner-ietf-mta-filters Thu Jun 30 02:34:22 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U9YM2J041942;
	Thu, 30 Jun 2005 02:34:22 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5U9YMMj041941;
	Thu, 30 Jun 2005 02:34:22 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U9YKrr041838
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 02:34:21 -0700 (PDT)
	(envelope-from michael@freenet-ag.de)
Received: from [194.97.50.138] (helo=mx0.freenet.de)
	by mout1.freenet.de with esmtpa (Exim 4.52)
	id 1DnvR0-0003tP-S7
	for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:34:14 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6])
	by mx0.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3)
	id 1DnvR0-0002pZ-J0
	for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:34:14 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3)
	id 1DnvQz-0008O1-CU
	for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:34:13 +0200
To: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #3: require 2047 decoding?
Message-Id: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Thu, 30 Jun 2005 11:34:13 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


> That is, support for RFC 2047 is only a SHOULD and not a MUST.  Do
> we want to leave that as is or should it be made stricter, with a
> MUST support RFC 2047, MUST support conversion of US-ASCII and UTF-8
> and SHOULD support conversion of ISO-8859-1 and the US-ASCII subset
> of ISO-8859-*?

I would prefer that, but:

>    If implementations fail to support the above behavior, they MUST
>    conform to the following:
>
>       No two strings can be considered equal if one contains octets
>       greater than 127.

To me, that states that if an implementation fails to convert a character
set to UTF-8, two strings can not be equal if one contains octets greater
than 127.  Assuming that all unknown character sets are one-byte character
sets with the lower 128 octects being US-ASCII is not sound.  But perhaps
that's not what was meant.

>    MIME parts identified as using charsets other than UTF-8 as
>    defined in [UTF-8] SHOULD be converted to UTF-8 prior to the match.

Shouldn't the implementation be free what to convert them to? It may
chose a different unicode representation.  Do we need to enforce UTF-8?

>    If an implementation does not support conversion of a given
>    charset to UTF-8, it MAY compare against the US-ASCII subset
>    of the transfer-decoded character data instead.  Characters from
>    documents tagged with charsets that the local implementation
>    cannot convert to UTF-8 and text from mistagged documents MAY
>    be omitted or processed according to local conventions.

That sounds more useful than RFC 3028 to me, but I slightly prefer to
match the raw transfer-encoded data.  Why bother decoding it, if you
can entirely unsure what it may be anyway?

Whatever the result is, I agree that comparisons for header and body
should be the same.

Michael


From owner-ietf-mta-filters Thu Jun 30 03:00:02 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UA02pt064620;
	Thu, 30 Jun 2005 03:00:02 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5UA02vT064618;
	Thu, 30 Jun 2005 03:00:02 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout2.freenet.de (mout2.freenet.de [194.97.50.155])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UA00lJ064564
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 03:00:00 -0700 (PDT)
	(envelope-from michael@freenet-ag.de)
Received: from [194.97.55.192] (helo=mx8.freenet.de)
	by mout2.freenet.de with esmtpa (Exim 4.52)
	id 1Dnvpu-0005wk-SO
	for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:59:58 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6])
	by mx8.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3)
	id 1Dnvpu-0004Fw-PV
	for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:59:58 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3)
	id 1Dnvpt-0008Oq-Et
	for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:59:57 +0200
To: ietf-mta-filters@imc.org
Subject: My open issues with RFC3028bis
Message-Id: <E1Dnvpt-0008Oq-Et@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Thu, 30 Jun 2005 11:59:57 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Hello,

the current draft already closed many items on my list.  I may have
missed some changes, but this is currently unsolved:


Strings Containing Header Names

RFC 3028 does not specify what happens if a string denoting a header field
does not contain a valid name, e.g. it contains a colon for a header.
I generate an error on this case.  We just have this discussion on
"envelope".


Header Test With Invalid MIME Encoding In Header

Some MUAs process invalid base64 encoded data, generating junk.
Others ignore junk after seeing an equal sign in base64 encoded data.
RFC 2047 does not specify how to react in this case, other than stating
that a client must not forbid to process a message for that reason.
RFC 2045 specifies that invalid data should be ignored (appearantly
looking at end of line characters).  It also specifies that invalid data
may lead to rejecting messages containing them (and there it appears to
talk about true encoding violations), which is a clear contradiction to
ignoring them.

RFC 3028 does not specify how to process incorrect MIME words.
My implementation treats them literally.


String Arguments

There has been confusion if the string arguments to "require" are to be
matched case-sensitive or not.  The comparator default is case-insensitive
comparison, but "require" does not allow to specify a comparator, so
this default does not apply.  Lacking a clear specification, matching
the strings exactly makes most sense.  The same is valid for comparator
names, also specified as strings.  I think there is agreement in matching,
but I fail to see this being mentioned in RFC3028bis.


MIME-Encoded NUL Characters

Subject: =?iso-8859-1?q?abc=00def

header :contains "Subject" ["abc"]
header :contains "Subject" ["def"]
header :matches "Subject" ["abc?def"]

Sieve scripts can not contain NUL characters in strings, but mail headers
can contain MIME encoded NUL characters, which can never be matched by
Sieve scripts using exact comparisons.  Implementations that use C-style
strings will only evaulate the first test as true.

I still think this should be mentioned.


Sieve Syntax and Semantics

RFC 3028 confuses syntax and semantics sometimes.  It uses a generic
grammar as syntax for actions and tests and performs many checks during
semantic analysis.  Syntax is specified as grammar rule, semantics
with natural language, despite the latter often talking about syntax.
The intention was to provide a framework for the syntax that describes
current commands as well as future extensions, and describing commands
by semantics.

RFC 3028 does not define if semantic checks are strict (always treat
unknown extensions as errors) or lazy (treat unknown extensions as error,
if they are executed), and since it employs a very generic grammar,
it is not unreasonable for an implementation using a parser for the
generic grammar to indeed process scripts that contain unknown commands
in dead code.  It is just required to treat disabled but known extensions
the same as unknown extensions.

My implementation is strict, which means semantic errors are treated
the same as syntactic errors, no matter if in dead code or not.

Somehow awaiting the flames now, :)

Michael


From owner-ietf-mta-filters Thu Jun 30 11:45:47 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UIjlfc039027;
	Thu, 30 Jun 2005 11:45:47 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5UIjltC039025;
	Thu, 30 Jun 2005 11:45:47 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UIjibS038956
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 11:45:46 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5UIjX9W013144
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK);
	Thu, 30 Jun 2005 11:45:34 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5UIjX9W013144
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=PwyiaeduGfELbe93eLlnbm9DyGW9pyFQ+jFUqXBkBG0LqUlAf5/56J4wnt1HXSRIr
	l0Ig3C8b+k03W0EoZSSbJ019Ql+rpNll4HCxK6mrjIph2N65O8DrlZ3dNKuXc8gEMA4
	hBCMDyj6sdTw2ZWUGqjyZyT0SPhWdbRYqgGzaAk=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5UIjXf1084607;
	Thu, 30 Jun 2005 11:45:33 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506301845.j5UIjXf1084607@lab.smi.sendmail.com>
To: Michael Haardt <michael@freenet-ag.de>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: My open issues with RFC3028bis 
In-reply-to: <E1Dnvpt-0008Oq-Et@nostromo.freenet-ag.de> 
References: <E1Dnvpt-0008Oq-Et@nostromo.freenet-ag.de> 
Date: Thu, 30 Jun 2005 11:45:33 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Michael Haardt <michael@freenet-ag.de> writes:
>the current draft already closed many items on my list.  I may have
>missed some changes, but this is currently unsolved:
...
>Strings Containing Header Names
>MIME-Encoded NUL Characters
>Header Test With Invalid MIME Encoding In Header
>String Arguments

Hmm, did you miss my reply on these points to your previous post?
Rather than repeat my comments...

http://www.imc.org/ietf-mta-filters/mail-archive/msg06094.html

I think I was waiting for a response or more comments before making
changes.  I should have added them to the open issues list while
waiting.


>Sieve Syntax and Semantics
...
>RFC 3028 does not define if semantic checks are strict (always treat
>unknown extensions as errors) or lazy (treat unknown extensions as error,
>if they are executed), and since it employs a very generic grammar,
>it is not unreasonable for an implementation using a parser for the
>generic grammar to indeed process scripts that contain unknown commands
>in dead code.  It is just required to treat disabled but known extensions
>the same as unknown extensions.

My read of section 2.10.6 is that an implementation is only required to
detect errors in code that is actually executed, but that it is
permitted to also detect them code that is skipped ("if false { ... }")
or not reached ("stop; ...").  Script writers should disable code using
unsupported extensions by removing it completely or commenting it out,
as they cannot depend on implementations accepting such code when
wrapped in an "if false {...}" block.


What do other people think?  Should wording similar to that be added to
2.10.6?


Philip Guenther


From owner-ietf-mta-filters Thu Jun 30 13:21:26 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UKLQCm041025;
	Thu, 30 Jun 2005 13:21:26 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5UKLQKw041024;
	Thu, 30 Jun 2005 13:21:26 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UKLO7D040990
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 13:21:24 -0700 (PDT)
	(envelope-from tjs@psaux.com)
Received: from [66.228.163.20] (trustwho.corp.yahoo.com [66.228.163.20])
	by mrout1.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id j5UKJLE6089462;
	Thu, 30 Jun 2005 13:19:21 -0700 (PDT)
Message-ID: <42C453C9.8070207@psaux.com>
Date: Thu, 30 Jun 2005 13:19:21 -0700
From: Tim Showalter <tjs@psaux.com>
User-Agent: Mozilla Thunderbird 1.0 (X11/20050215)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Haardt <michael@freenet-ag.de>
CC: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #3: require 2047 decoding?
References: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de>
In-Reply-To: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Michael Haardt wrote:
> Shouldn't the implementation be free what to convert them to? It may
> chose a different unicode representation.  Do we need to enforce UTF-8?

I realize the language in 3028 clearly implies implementations are 
required to convert to UTF-8 but if an implementation wants to use UCS-4 
or UCS-2 or UTF-7 internally, that must be allowed.  The specification 
has no power to specify behavior that can't be externally observed, and 
the text you cited is just wrong.

Perhaps the text should have been simply "MIME parts SHOULD be 
canonicalized to Unicode prior to the match".  I'm sure there's a way to 
phrase it in a way that's completely encoding-neutral, though.

Tim


From owner-ietf-mta-filters Thu Jun 30 14:02:33 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UL2X0x086285;
	Thu, 30 Jun 2005 14:02:33 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5UL2XEm086284;
	Thu, 30 Jun 2005 14:02:33 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mv.mv.com (osmium.mv.net [199.125.85.152])
	by above.proper.com (8.12.11/8.12.9) with SMTP id j5UL2Wh6086278
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 14:02:32 -0700 (PDT)
	(envelope-from mem@mv.mv.com)
Received: (qmail 35848 invoked by uid 101); 30 Jun 2005 17:02:31 -0400
From: "Mark E. Mallett" <mem@mv.mv.com>
Date: Thu, 30 Jun 2005 17:02:31 -0400
To: Philip Guenther <guenther+mtafilters@sendmail.com>
Cc: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #1: envelope-sender argument for redirect?
Message-ID: <20050630210231.GH6915@osmium.mv.net>
References: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com>
User-Agent: Mutt/1.4.2.1i
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


On Wed, Jun 29, 2005 at 01:19:46AM -0700, Philip Guenther wrote:
> There was a suggestion that the 'redirect' action should provide a
> way to specify the envelope-from address used when the message was
> redirected.
> 
> While a nice idea, no one has said anything further on it, which
> says to me that we shouldn't add it as a new requirement on
> implementations.

Up until you posted, there wasn't much discussion on any of the 3 items
you emailed about separately, so I don't know if that conclusion follows
from that justification.  I suspect it's a correct conclusion though :-)

OTOH, I'm probably being dumb again (feel free to agree), but what's the
meta-stuff?  i.e.  how has 3028bis come about, what's the charter for
its creation, is there a call for submissions of items, etc?

mm


From owner-ietf-mta-filters Thu Jun 30 15:23:47 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UMNlwG078981;
	Thu, 30 Jun 2005 15:23:47 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j5UMNlhL078974;
	Thu, 30 Jun 2005 15:23:47 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UMNg4Y078892
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 15:23:43 -0700 (PDT)
	(envelope-from michael@freenet-ag.de)
Received: from [194.97.50.144] (helo=mx1.freenet.de)
	by mout0.freenet.de with esmtpa (Exim 4.52)
	id 1Do7RZ-0005E2-AF
	for ietf-mta-filters@imc.org; Fri, 01 Jul 2005 00:23:37 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6])
	by mx1.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3)
	id 1Do7RZ-0004VI-96
	for ietf-mta-filters@imc.org; Fri, 01 Jul 2005 00:23:37 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3)
	id 1Do7RW-0002QU-TU
	for ietf-mta-filters@imc.org; Fri, 01 Jul 2005 00:23:34 +0200
To: ietf-mta-filters@imc.org
Subject: Re: My open issues with RFC3028bis
Message-Id: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Fri, 01 Jul 2005 00:23:34 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


> Hmm, did you miss my reply on these points to your previous post?
> Rather than repeat my comments...
>
> http://www.imc.org/ietf-mta-filters/mail-archive/msg06094.html
>
> I think I was waiting for a response or more comments before making
> changes.  I should have added them to the open issues list while
> waiting.

Sorry, I probably really missed it. :(

> >Strings Containing Header Names

Section 2.4.2.2:

   A header name never contains a colon.  The "From" header refers to a
   line beginning "From:" (or "From   :", etc.).  No header will match
   the string "From:" due to the trailing colon.

No header will match it, but what's the result? How about ""? If users
write "From:", most likely they made a mistake.  Should that really not
cause an error?

> >MIME-Encoded NUL Characters
> >Header Test With Invalid MIME Encoding In Header

> Hmm.  To paraphrase (and mangle) something that Dave Crocker said at the
> meeting in Minneapolis: when there's a spec for something, it's a bad
> idea to try to address general problems arising from it anywhere but in
> that spec.

As I quoted, I see a contradiction in the base spec.  Either
interpretation could be valid, but only one probbaly is.  The fact that
the same Sieve code yields different results on different implementations
is not something to be described in the MIME RFCs.

> >String Arguments

As you can see, I agree with you and probably everybody else here
now.  Yet, the RFC still does not specify it.  If the collation draft
determines caseful or caseless matching, then please refer to it doing
so.  That does not answer how other extension names are being matched,
although we agree it should be caseful.

> My read of section 2.10.6 is that an implementation is only required to
> detect errors in code that is actually executed, but that it is
> permitted to also detect them code that is skipped ("if false { ... }")
> or not reached ("stop; ...").  Script writers should disable code using
> unsupported extensions by removing it completely or commenting it out,
> as they cannot depend on implementations accepting such code when
> wrapped in an "if false {...}" block.

That's what I finally thought: Everything is possible.  To me,
compile-time is both syntactic and semantic checks, but Sieve may be
compiled or interpreted.  An implementation may parse and interpret at
the same time, and not notice junk after executing "stop;".  It may build
a syntax tree, thus first parsing everything, and then interpret that,
only doing semantic checks on interpreted parts.  Or it may perform
semantic checks on the entire parse tree before interpreting it.

Perhaps we should split the description in syntactic, semantic and
run-time checks.  The syntax is described in section 8.  The description
of control structures, tests and actions must not talk of syntax, but
of semantics and run-time checks.

That's uncommon, because most languages (LISP being one exception) do as
much on the syntactic level as possible.  I have no idea why extensions
do not extend syntax instead of semantics with the requirement that
words of the extended grammar must be words of the generic grammar,
but I guess it is too late now.

What can be done is to use the terminology right.  When starting my
implementation, it confused me to no end that the previously described
syntax did not appear in the grammar.  I would like to save the next
person from that confusion:

----------
Sieve implementations MUST perform syntactic, semantic and run-time
checks on actually executed code.  Implementations are free to perform
those checks, or part of them, on not executed code, and they are free
to perform them before or during execution.
----------

Smells like the range found in BASIC implementations. :-)

Michael


From owner-ietf-mta-filters Thu Jun 30 17:44:08 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j610i76g024544;
	Thu, 30 Jun 2005 17:44:07 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j610i79Z024543;
	Thu, 30 Jun 2005 17:44:07 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j610i7FE024474
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 17:44:07 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j610hrFW016672
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK);
	Thu, 30 Jun 2005 17:43:53 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j610hrFW016672
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=SXk9CyML21bQw9uOM/4LIH48qCEfAKd6c5j51Of6jP3HxlJ1Ovl7khMPentBu9GKc
	JJbpZJ9A88ypatIxFcT0q5ZlinNbnu0x+KQgzznwOp7jmdvZVOBGRtczf+PdwlCrQ7a
	EwXMEEJSRpJHBgkasewrvQW6TfzVxTkCvHr2mvA=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j610hrcn013482;
	Thu, 30 Jun 2005 17:43:53 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200507010043.j610hrcn013482@lab.smi.sendmail.com>
To: Tim Showalter <tjs@psaux.com>
Cc: Michael Haardt <michael@freenet-ag.de>, ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: 3028bis open issue #3: require 2047 decoding? 
In-reply-to: <42C453C9.8070207@psaux.com> 
References: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de> 
	<42C453C9.8070207@psaux.com> 
Date: Thu, 30 Jun 2005 17:43:53 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Tim Showalter <tjs@psaux.com> writes:
>Michael Haardt wrote:
>> Shouldn't the implementation be free what to convert them to? It may
>> chose a different unicode representation.  Do we need to enforce UTF-8?
>
>I realize the language in 3028 clearly implies implementations are 
>required to convert to UTF-8 but if an implementation wants to use UCS-4 
>or UCS-2 or UTF-7 internally, that must be allowed.  The specification 
>has no power to specify behavior that can't be externally observed, and 
>the text you cited is just wrong.
...

For 3028bis, 2.7.2, paragraph 2, how about:

	Comparisons are performed in Unicode.  Implementations convert
	text from header fields in all charsets [HEADER-CHARSET] to
	Unicode as input to the comparator (see 2.7.3).  Implementations
	must be capable of decoding US-ASCII, ISO-8859-1, the US-ASCII
	subset of ISO-8859-* character sets, and UTF-8.

with the new normative reference:

[HEADER-CHARSET]	Moore, K., "MIME (Multipurpose Internet Mail
			Extensions) Part Three: Message Header
			Extensions for Non-ASCII Text", RFC 2047,
			November 1996

Hmm, I think the paragraph needs to also specify that text in unknown
charsets never matches, no?

(You can't just map them to U+FFFD (replacement character) because you
don't know how many characters are encoded!)


Philip Guenther


From owner-ietf-mta-filters Thu Jun 30 17:59:08 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j610x7xH037737;
	Thu, 30 Jun 2005 17:59:07 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j610x7TS037717;
	Thu, 30 Jun 2005 17:59:07 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j610x5YA037647
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 17:59:06 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j610x3N1020693
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK);
	Thu, 30 Jun 2005 17:59:03 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j610x3N1020693
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=Wi+XSl8omaPMoyeeYW3yDfgBfs/AR6mrV6KxvqJsloBPPo8ZloNm2cxDPXoRzLXOz
	PwyrTfBfqWwN1v6FlTP6XrwBOfAETpw1S6bwVDRJZEzA4vounSrRCp1dj0Kfd4d2vu+
	3cNe8tUrEgYa3VE1dGfngcinJzs9446LW/fdb+0=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j610x234014617;
	Thu, 30 Jun 2005 17:59:03 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200507010059.j610x234014617@lab.smi.sendmail.com>
To: "Mark E. Mallett" <mem@mv.mv.com>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: sieve WG charter
In-reply-to: <20050630210231.GH6915@osmium.mv.net> 
References: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com> 
	<20050630210231.GH6915@osmium.mv.net> 
Date: Thu, 30 Jun 2005 17:59:02 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Mark E. Mallett <mem@mv.mv.com> writes:
...
>OTOH, I'm probably being dumb again (feel free to agree), but what's the
>meta-stuff?  i.e.  how has 3028bis come about, what's the charter for
>its creation, is there a call for submissions of items, etc?

http://www.ietf.org/html.charters/sieve-charter.html

	(1) Revise the base sieve specification, RFC 3028, with the
	intention of moving it to draft standard. Substantive
	additions or revisions to the base specification are out
	of scope of this working group. However, the need to loosen
	current restrictions on side effects of tests as well as
	the need for a normative reference to the newly-defined
	comparators registry may necessitate a recycle at proposed.

With the comparator and side-effects bits done, we should be down
to corrections of errors and clarifications, right?

So, I see I was in error to even consider the 'add option to set
envelope-sender' suggestion as an open issue, as it's out of scope.
Similarly, changing section 2.7.2 to require support for 2047 should
be considered out of scope as well.

Hmm, perhaps we can last call this thing just before IETF-63.


Philip Guenther


From owner-ietf-mta-filters Thu Jun 30 19:19:08 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j612J87G082892;
	Thu, 30 Jun 2005 19:19:08 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j612J8rd082891;
	Thu, 30 Jun 2005 19:19:08 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mrout1-b.corp.dcn.yahoo.com (mrout1-b.corp.dcn.yahoo.com [216.109.112.27])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j612J65T082880
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 19:19:07 -0700 (PDT)
	(envelope-from tjs@psaux.com)
Received: from [66.228.163.20] (trustwho.corp.yahoo.com [66.228.163.20])
	by mrout1-b.corp.dcn.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id j612IZag065431;
	Thu, 30 Jun 2005 19:18:36 -0700 (PDT)
Message-ID: <42C4A7FB.3000906@psaux.com>
Date: Thu, 30 Jun 2005 19:18:35 -0700
From: Tim Showalter <tjs@psaux.com>
User-Agent: Mozilla Thunderbird 1.0 (X11/20050215)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Philip Guenther <guenther+mtafilters@sendmail.com>
CC: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #3: require 2047 decoding?
References: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de> 	<42C453C9.8070207@psaux.com> <200507010043.j610hrcn013482@lab.smi.sendmail.com>
In-Reply-To: <200507010043.j610hrcn013482@lab.smi.sendmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


> For 3028bis, 2.7.2, paragraph 2, how about:
> 
> 	Comparisons are performed in Unicode.  Implementations convert
> 	text from header fields in all charsets [HEADER-CHARSET] to
> 	Unicode as input to the comparator (see 2.7.3).  Implementations
> 	must be capable of decoding US-ASCII, ISO-8859-1, the US-ASCII
> 	subset of ISO-8859-* character sets, and UTF-8.

Yeah, that's good.

> Hmm, I think the paragraph needs to also specify that text in unknown
> charsets never matches, no?

I think you're right.

Tim


From owner-ietf-mta-filters Thu Jun 30 19:57:57 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j612vu3R006402;
	Thu, 30 Jun 2005 19:57:56 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j612vutf006401;
	Thu, 30 Jun 2005 19:57:56 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j612vt3U006395
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 19:57:56 -0700 (PDT)
	(envelope-from ned.freed@mrochek.com)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243)
 id <01LQ2A3BFSV400004T@mauve.mrochek.com> for ietf-mta-filters@imc.org; Thu,
 30 Jun 2005 19:57:52 -0700 (PDT)
Cc: ietf-mta-filters@imc.org
To: Michael Haardt <michael@freenet-ag.de>
Message-id: <01LQ31LDKJ0200004T@mauve.mrochek.com>
Date: Thu, 30 Jun 2005 15:44:04 -0700 (PDT)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: My open issues with RFC3028bis
In-reply-to: "Your message dated Fri, 01 Jul 2005 00:23:34 +0200"
 <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de>
MIME-version: 1.0
References: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>



> > Hmm, did you miss my reply on these points to your previous post?
> > Rather than repeat my comments...
> >
> > http://www.imc.org/ietf-mta-filters/mail-archive/msg06094.html
> >
> > I think I was waiting for a response or more comments before making
> > changes.  I should have added them to the open issues list while
> > waiting.

> Sorry, I probably really missed it. :(

> > >Strings Containing Header Names

> Section 2.4.2.2:

>    A header name never contains a colon.  The "From" header refers to a
>    line beginning "From:" (or "From   :", etc.).  No header will match
>    the string "From:" due to the trailing colon.

> No header will match it, but what's the result?

The result is the same as if you tried to test a header that isn't
present - the test fails unconditionally.

> How about ""?

No, because the empty string doesn't guarantee a failure - there can be
patterns that match it.

This is actually spelled out in the the third paragraph of section 5.7.
(The first paragraph's wording is pretty awkward, however.)

> If users
> write "From:", most likely they made a mistake.  Should that really not
> cause an error?

If we were specifying this for the first time, yes, absolutely. But we're not
doing that. We're revising an existing proposed standard, and we're supposed to
keep changes to a minimum so as not to break existing compliant
implementations.

This is what our WG charter has to say:

(1) Revise the base sieve specification, RFC 3028, with the intention
    of moving it to draft standard. Substantive additions or revisions to
    the base specification are out of scope of this working group. However,
    the need to loosen current restrictions on side effects of tests as
    well as the need for a normative reference to the newly-defined comparators
    registry may necessitate a recycle at proposed.

This sort of change consistutes a substansive revision in my book, and is
therefore out of scope.

> > > MIME-Encoded NUL Characters
> > > Header Test With Invalid MIME Encoding In Header

> > Hmm.  To paraphrase (and mangle) something that Dave Crocker said at the
> > meeting in Minneapolis: when there's a spec for something, it's a bad
> > idea to try to address general problems arising from it anywhere but in
> > that spec.

> As I quoted, I see a contradiction in the base spec.

Well, the "contradiction" seems to be between the handling RFC 2045 recommends
for invalid encodings versus the handling RFC 2047 recommends. But this is
really not a contradiction since the two documents are talking about disjoint
sorts of encodings - one of body data and the other of encoded words in the
message header. So, while the handling of broken encodings specified in RFC
2045 might perhaps be releant to the body extension, I do not view it as in any
way relevant to the sieve base specification.

Now, having said that, there appear to me to be three issues here:

(1) What to do about "incorrect" encoded words, where the "incorrectness"
    manifests as them being syntactically invalid according to RFC 2047.
    In this case I believe RFC 2047 rules should apply: This is simply
    literal text, not encoded words.

(2) What to do about "incorrect" encoded words where the encoded payload
    doesn't match up with the rules for the specified encoding. From what
    I can tell RFC 2047 is silent on this issue. However, RFC 2047 does
    suggest that encoded-words that specify an unrecognized encoding might
    best be treated as ordinary text. I think it appropriate to suggest, but
    not require, this handling for encoded words with busted encoded
    content.

(3) What to do about encoded words that decode to a series of octets that
    contain NULs, CRs, LFs, or whatever. RFC 2047 is pretty clear that this
    is actually legal and implementations must take it into account, so I have
    no problem with saying sieve implementations must also allow such output.
    OTOH, if sufficient existing implementations have issues, we might want
    to allow some leeway by making this just a suggestion.

> Either
> interpretation could be valid, but only one probbaly is.  The fact that
> the same Sieve code yields different results on different implementations
> is not something to be described in the MIME RFCs.

Given that encoded words can specify any charset they like, including very
obscure ones, and different implementations are bound to provide different
charset support, I find it hard to get excited about different implementations
behaving differently in this regard. We're already there even with inputs that
are valid in every way.

> > > String Arguments

> As you can see, I agree with you and probably everybody else here
> now.  Yet, the RFC still does not specify it.  If the collation draft
> determines caseful or caseless matching, then please refer to it doing
> so.  That does not answer how other extension names are being matched,
> although we agree it should be caseful.

We do case-sensitive matches on require strings, so this is OK as far as we're
concerned. Hopefully there isn't a popular implementation that has spawned a
corpus of require "ENVELOPE"; scripts out there.

				Ned


From owner-ietf-mta-filters Thu Jun 30 22:37:38 2005
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j615bcdp034974;
	Thu, 30 Jun 2005 22:37:38 -0700 (PDT)
	(envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost)
	by above.proper.com (8.12.11/8.12.9/Submit) id j615bcF2034973;
	Thu, 30 Jun 2005 22:37:38 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40])
	by above.proper.com (8.12.11/8.12.9) with ESMTP id j615bbeB034955
	for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 22:37:37 -0700 (PDT)
	(envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93])
	by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j615bTX3032409
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK);
	Thu, 30 Jun 2005 22:37:29 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j615bTX3032409
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns;
	b=mo++Ia5L2hH3GOTjrIxXSmo/0faNQdHIrvseeoureuXlMWtKlgUiFjNNGvbOb78d0
	1Mz41Evl1XQjBOmU4/xbbyO2VWspiZJvGd7sme3/CuvvWCFEpT6Odb5W30gkddQb7oa
	rVF4w8tftAS0A2mH3YoiBxUvelGpHIE+58fA/5Y=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1])
	by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j615bTST035402;
	Thu, 30 Jun 2005 22:37:29 -0700 (PDT)
	(envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200507010537.j615bTST035402@lab.smi.sendmail.com>
To: Michael Haardt <michael@freenet-ag.de>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: My open issues with RFC3028bis 
In-reply-to: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de> 
References: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de> 
Date: Thu, 30 Jun 2005 22:37:29 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Michael Haardt <michael@freenet-ag.de> writes:
...
>>>Strings Containing Header Names
>
>Section 2.4.2.2:
>
>   A header name never contains a colon.  The "From" header refers to a
>   line beginning "From:" (or "From   :", etc.).  No header will match
>   the string "From:" due to the trailing colon.
>
>No header will match it, but what's the result?

Is it unclear that an 'address' or 'header' test of header fields
that are not present in the actual message evaluates to false?


>How about ""?  If users
>write "From:", most likely they made a mistake.  Should that really not
>cause an error?

I think an implementation is allowed do so for 'address' (per the
last paragraph of 5.1), but the use of 'match' in 2.4.2.2 doesn't
seem to leave room for raising an error in 'header' or 'exists'.

Does anyone else have an opinion?  (We've already seen yours, Alexey)


>> >MIME-Encoded NUL Characters
>> >Header Test With Invalid MIME Encoding In Header
>
>> Hmm.  To paraphrase (and mangle) something that Dave Crocker said at the
>> meeting in Minneapolis: when there's a spec for something, it's a bad
>> idea to try to address general problems arising from it anywhere but in
>> that spec.
>
>As I quoted, I see a contradiction in the base spec.

By 'base spec' you mean the MIME base spec(s) and not the sieve
base spec?


You wrote:

>>Some MUAs process invalid base64 encoded data, generating junk.
>>Others ignore junk after seeing an equal sign in base64 encoded
>>data.  RFC 2047 does not specify how to react in this case, other
>>than stating that a client must not forbid to process a message for
>>that reason.  RFC 2045 specifies that invalid data should be ignored
>>(appearantly looking at end of line characters).  It also specifies
>>that invalid data may lead to rejecting messages containing them
>>(and there it appears to talk about true encoding violations), which
>>is a clear contradiction to ignoring them.

It would help if you had cited specific sections in those RFCs or
had quoted the relevent text.  I'll assume you were looking at RFC
2045, section 6.8, paragraphs 6 and 9 and RFC 2047 section 6.3.

I'm not the MIME expert here (Ned is!), but RFC 2045, 6.8, p6+9 can
be seen as consistent by considering p6 as giving license to reject
messages with bogus characters, while p9 describes how bogus
characters are processed when they don't cause rejection, as well
as how whitespace and line breaks are processed.

Regarding RFC 2047, section 6.3, I would read that as permitting
implementations to skip malformed encoded words, even as it bans
them from refusing to process the message.


Regarding the NUL character issue, you wrote:
>>Note that by considering Sieve to be a MUA, RFC 2047 can be
>>interpreted in a way that NUL characters truncating strings is
>>allowed for Sieve implementations, although not recommended.  It
>>is further allowed to use encoded NUL characters in headers, but
>>that's not recommended either.

Looking against at RFC 2047, I am unable to find any text to back
up these statements.  Perhaps you meant RFC 2049, section 2, item
6?  If so, that only applies to text parts in the body, not to
encoded header fields.  Conformance requirements on the processing
of encoded header fields is item 10, which doesn't exclude NUL from
processing.


>> >String Arguments
>
>As you can see, I agree with you and probably everybody else here
>now.  Yet, the RFC still does not specify it.

I, uh, was waiting to see if we had reached consensus.  <wince>
I've added the following sentence to the middle of the second
paragraph of section 6:
	Capability string are case-sensitive; for example, "foo"
	and "FOO" are different capabilities.


(BTW, to be precise: 3028bis is an internet-draft, not an RFC)


...
>I would like to save the next person from that confusion:
>
>----------
>Sieve implementations MUST perform syntactic, semantic and run-time
>checks on actually executed code.  Implementations are free to perform
>those checks, or part of them, on not executed code, and they are free
>to perform them before or during execution.
>----------

Hmm, how about:
   Implementations MUST perform syntactic, semantic, and run-time checks
   on code that is actually executed.  Implementations MAY perform those
   checks or any part of them on code that is not reached during
   execution.

inserted as the penultimate paragraph of section 2.10.6?


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j615bcdp034974; Thu, 30 Jun 2005 22:37:38 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j615bcF2034973; Thu, 30 Jun 2005 22:37:38 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j615bbeB034955 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 22:37:37 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j615bTX3032409 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 30 Jun 2005 22:37:29 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j615bTX3032409
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=mo++Ia5L2hH3GOTjrIxXSmo/0faNQdHIrvseeoureuXlMWtKlgUiFjNNGvbOb78d0 1Mz41Evl1XQjBOmU4/xbbyO2VWspiZJvGd7sme3/CuvvWCFEpT6Odb5W30gkddQb7oa rVF4w8tftAS0A2mH3YoiBxUvelGpHIE+58fA/5Y=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j615bTST035402; Thu, 30 Jun 2005 22:37:29 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200507010537.j615bTST035402@lab.smi.sendmail.com>
To: Michael Haardt <michael@freenet-ag.de>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: My open issues with RFC3028bis 
In-reply-to: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de> 
References: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de> 
Date: Thu, 30 Jun 2005 22:37:29 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Michael Haardt <michael@freenet-ag.de> writes:
...
>>>Strings Containing Header Names
>
>Section 2.4.2.2:
>
>   A header name never contains a colon.  The "From" header refers to a
>   line beginning "From:" (or "From   :", etc.).  No header will match
>   the string "From:" due to the trailing colon.
>
>No header will match it, but what's the result?

Is it unclear that an 'address' or 'header' test of header fields
that are not present in the actual message evaluates to false?


>How about ""?  If users
>write "From:", most likely they made a mistake.  Should that really not
>cause an error?

I think an implementation is allowed do so for 'address' (per the
last paragraph of 5.1), but the use of 'match' in 2.4.2.2 doesn't
seem to leave room for raising an error in 'header' or 'exists'.

Does anyone else have an opinion?  (We've already seen yours, Alexey)


>> >MIME-Encoded NUL Characters
>> >Header Test With Invalid MIME Encoding In Header
>
>> Hmm.  To paraphrase (and mangle) something that Dave Crocker said at the
>> meeting in Minneapolis: when there's a spec for something, it's a bad
>> idea to try to address general problems arising from it anywhere but in
>> that spec.
>
>As I quoted, I see a contradiction in the base spec.

By 'base spec' you mean the MIME base spec(s) and not the sieve
base spec?


You wrote:

>>Some MUAs process invalid base64 encoded data, generating junk.
>>Others ignore junk after seeing an equal sign in base64 encoded
>>data.  RFC 2047 does not specify how to react in this case, other
>>than stating that a client must not forbid to process a message for
>>that reason.  RFC 2045 specifies that invalid data should be ignored
>>(appearantly looking at end of line characters).  It also specifies
>>that invalid data may lead to rejecting messages containing them
>>(and there it appears to talk about true encoding violations), which
>>is a clear contradiction to ignoring them.

It would help if you had cited specific sections in those RFCs or
had quoted the relevent text.  I'll assume you were looking at RFC
2045, section 6.8, paragraphs 6 and 9 and RFC 2047 section 6.3.

I'm not the MIME expert here (Ned is!), but RFC 2045, 6.8, p6+9 can
be seen as consistent by considering p6 as giving license to reject
messages with bogus characters, while p9 describes how bogus
characters are processed when they don't cause rejection, as well
as how whitespace and line breaks are processed.

Regarding RFC 2047, section 6.3, I would read that as permitting
implementations to skip malformed encoded words, even as it bans
them from refusing to process the message.


Regarding the NUL character issue, you wrote:
>>Note that by considering Sieve to be a MUA, RFC 2047 can be
>>interpreted in a way that NUL characters truncating strings is
>>allowed for Sieve implementations, although not recommended.  It
>>is further allowed to use encoded NUL characters in headers, but
>>that's not recommended either.

Looking against at RFC 2047, I am unable to find any text to back
up these statements.  Perhaps you meant RFC 2049, section 2, item
6?  If so, that only applies to text parts in the body, not to
encoded header fields.  Conformance requirements on the processing
of encoded header fields is item 10, which doesn't exclude NUL from
processing.


>> >String Arguments
>
>As you can see, I agree with you and probably everybody else here
>now.  Yet, the RFC still does not specify it.

I, uh, was waiting to see if we had reached consensus.  <wince>
I've added the following sentence to the middle of the second
paragraph of section 6:
	Capability string are case-sensitive; for example, "foo"
	and "FOO" are different capabilities.


(BTW, to be precise: 3028bis is an internet-draft, not an RFC)


...
>I would like to save the next person from that confusion:
>
>----------
>Sieve implementations MUST perform syntactic, semantic and run-time
>checks on actually executed code.  Implementations are free to perform
>those checks, or part of them, on not executed code, and they are free
>to perform them before or during execution.
>----------

Hmm, how about:
   Implementations MUST perform syntactic, semantic, and run-time checks
   on code that is actually executed.  Implementations MAY perform those
   checks or any part of them on code that is not reached during
   execution.

inserted as the penultimate paragraph of section 2.10.6?


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j612vu3R006402; Thu, 30 Jun 2005 19:57:56 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j612vutf006401; Thu, 30 Jun 2005 19:57:56 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j612vt3U006395 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 19:57:56 -0700 (PDT) (envelope-from ned.freed@mrochek.com)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01LQ2A3BFSV400004T@mauve.mrochek.com> for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 19:57:52 -0700 (PDT)
Cc: ietf-mta-filters@imc.org
To: Michael Haardt <michael@freenet-ag.de>
Message-id: <01LQ31LDKJ0200004T@mauve.mrochek.com>
Date: Thu, 30 Jun 2005 15:44:04 -0700 (PDT)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: My open issues with RFC3028bis
In-reply-to: "Your message dated Fri, 01 Jul 2005 00:23:34 +0200" <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de>
MIME-version: 1.0
References: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> > Hmm, did you miss my reply on these points to your previous post?
> > Rather than repeat my comments...
> >
> > http://www.imc.org/ietf-mta-filters/mail-archive/msg06094.html
> >
> > I think I was waiting for a response or more comments before making
> > changes.  I should have added them to the open issues list while
> > waiting.

> Sorry, I probably really missed it. :(

> > >Strings Containing Header Names

> Section 2.4.2.2:

>    A header name never contains a colon.  The "From" header refers to a
>    line beginning "From:" (or "From   :", etc.).  No header will match
>    the string "From:" due to the trailing colon.

> No header will match it, but what's the result?

The result is the same as if you tried to test a header that isn't
present - the test fails unconditionally.

> How about ""?

No, because the empty string doesn't guarantee a failure - there can be
patterns that match it.

This is actually spelled out in the the third paragraph of section 5.7.
(The first paragraph's wording is pretty awkward, however.)

> If users
> write "From:", most likely they made a mistake.  Should that really not
> cause an error?

If we were specifying this for the first time, yes, absolutely. But we're not
doing that. We're revising an existing proposed standard, and we're supposed to
keep changes to a minimum so as not to break existing compliant
implementations.

This is what our WG charter has to say:

(1) Revise the base sieve specification, RFC 3028, with the intention
    of moving it to draft standard. Substantive additions or revisions to
    the base specification are out of scope of this working group. However,
    the need to loosen current restrictions on side effects of tests as
    well as the need for a normative reference to the newly-defined comparators
    registry may necessitate a recycle at proposed.

This sort of change consistutes a substansive revision in my book, and is
therefore out of scope.

> > > MIME-Encoded NUL Characters
> > > Header Test With Invalid MIME Encoding In Header

> > Hmm.  To paraphrase (and mangle) something that Dave Crocker said at the
> > meeting in Minneapolis: when there's a spec for something, it's a bad
> > idea to try to address general problems arising from it anywhere but in
> > that spec.

> As I quoted, I see a contradiction in the base spec.

Well, the "contradiction" seems to be between the handling RFC 2045 recommends
for invalid encodings versus the handling RFC 2047 recommends. But this is
really not a contradiction since the two documents are talking about disjoint
sorts of encodings - one of body data and the other of encoded words in the
message header. So, while the handling of broken encodings specified in RFC
2045 might perhaps be releant to the body extension, I do not view it as in any
way relevant to the sieve base specification.

Now, having said that, there appear to me to be three issues here:

(1) What to do about "incorrect" encoded words, where the "incorrectness"
    manifests as them being syntactically invalid according to RFC 2047.
    In this case I believe RFC 2047 rules should apply: This is simply
    literal text, not encoded words.

(2) What to do about "incorrect" encoded words where the encoded payload
    doesn't match up with the rules for the specified encoding. From what
    I can tell RFC 2047 is silent on this issue. However, RFC 2047 does
    suggest that encoded-words that specify an unrecognized encoding might
    best be treated as ordinary text. I think it appropriate to suggest, but
    not require, this handling for encoded words with busted encoded
    content.

(3) What to do about encoded words that decode to a series of octets that
    contain NULs, CRs, LFs, or whatever. RFC 2047 is pretty clear that this
    is actually legal and implementations must take it into account, so I have
    no problem with saying sieve implementations must also allow such output.
    OTOH, if sufficient existing implementations have issues, we might want
    to allow some leeway by making this just a suggestion.

> Either
> interpretation could be valid, but only one probbaly is.  The fact that
> the same Sieve code yields different results on different implementations
> is not something to be described in the MIME RFCs.

Given that encoded words can specify any charset they like, including very
obscure ones, and different implementations are bound to provide different
charset support, I find it hard to get excited about different implementations
behaving differently in this regard. We're already there even with inputs that
are valid in every way.

> > > String Arguments

> As you can see, I agree with you and probably everybody else here
> now.  Yet, the RFC still does not specify it.  If the collation draft
> determines caseful or caseless matching, then please refer to it doing
> so.  That does not answer how other extension names are being matched,
> although we agree it should be caseful.

We do case-sensitive matches on require strings, so this is OK as far as we're
concerned. Hopefully there isn't a popular implementation that has spawned a
corpus of require "ENVELOPE"; scripts out there.

				Ned



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j612J87G082892; Thu, 30 Jun 2005 19:19:08 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j612J8rd082891; Thu, 30 Jun 2005 19:19:08 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mrout1-b.corp.dcn.yahoo.com (mrout1-b.corp.dcn.yahoo.com [216.109.112.27]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j612J65T082880 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 19:19:07 -0700 (PDT) (envelope-from tjs@psaux.com)
Received: from [66.228.163.20] (trustwho.corp.yahoo.com [66.228.163.20]) by mrout1-b.corp.dcn.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id j612IZag065431; Thu, 30 Jun 2005 19:18:36 -0700 (PDT)
Message-ID: <42C4A7FB.3000906@psaux.com>
Date: Thu, 30 Jun 2005 19:18:35 -0700
From: Tim Showalter <tjs@psaux.com>
User-Agent: Mozilla Thunderbird 1.0 (X11/20050215)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Philip Guenther <guenther+mtafilters@sendmail.com>
CC: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #3: require 2047 decoding?
References: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de> 	<42C453C9.8070207@psaux.com> <200507010043.j610hrcn013482@lab.smi.sendmail.com>
In-Reply-To: <200507010043.j610hrcn013482@lab.smi.sendmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> For 3028bis, 2.7.2, paragraph 2, how about:
> 
> 	Comparisons are performed in Unicode.  Implementations convert
> 	text from header fields in all charsets [HEADER-CHARSET] to
> 	Unicode as input to the comparator (see 2.7.3).  Implementations
> 	must be capable of decoding US-ASCII, ISO-8859-1, the US-ASCII
> 	subset of ISO-8859-* character sets, and UTF-8.

Yeah, that's good.

> Hmm, I think the paragraph needs to also specify that text in unknown
> charsets never matches, no?

I think you're right.

Tim



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j610x7xH037737; Thu, 30 Jun 2005 17:59:07 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j610x7TS037717; Thu, 30 Jun 2005 17:59:07 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j610x5YA037647 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 17:59:06 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j610x3N1020693 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 30 Jun 2005 17:59:03 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j610x3N1020693
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=Wi+XSl8omaPMoyeeYW3yDfgBfs/AR6mrV6KxvqJsloBPPo8ZloNm2cxDPXoRzLXOz PwyrTfBfqWwN1v6FlTP6XrwBOfAETpw1S6bwVDRJZEzA4vounSrRCp1dj0Kfd4d2vu+ 3cNe8tUrEgYa3VE1dGfngcinJzs9446LW/fdb+0=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j610x234014617; Thu, 30 Jun 2005 17:59:03 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200507010059.j610x234014617@lab.smi.sendmail.com>
To: "Mark E. Mallett" <mem@mv.mv.com>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: sieve WG charter
In-reply-to: <20050630210231.GH6915@osmium.mv.net> 
References: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com>  <20050630210231.GH6915@osmium.mv.net> 
Date: Thu, 30 Jun 2005 17:59:02 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Mark E. Mallett <mem@mv.mv.com> writes:
...
>OTOH, I'm probably being dumb again (feel free to agree), but what's the
>meta-stuff?  i.e.  how has 3028bis come about, what's the charter for
>its creation, is there a call for submissions of items, etc?

http://www.ietf.org/html.charters/sieve-charter.html

	(1) Revise the base sieve specification, RFC 3028, with the
	intention of moving it to draft standard. Substantive
	additions or revisions to the base specification are out
	of scope of this working group. However, the need to loosen
	current restrictions on side effects of tests as well as
	the need for a normative reference to the newly-defined
	comparators registry may necessitate a recycle at proposed.

With the comparator and side-effects bits done, we should be down
to corrections of errors and clarifications, right?

So, I see I was in error to even consider the 'add option to set
envelope-sender' suggestion as an open issue, as it's out of scope.
Similarly, changing section 2.7.2 to require support for 2047 should
be considered out of scope as well.

Hmm, perhaps we can last call this thing just before IETF-63.


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j610i76g024544; Thu, 30 Jun 2005 17:44:07 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j610i79Z024543; Thu, 30 Jun 2005 17:44:07 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j610i7FE024474 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 17:44:07 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j610hrFW016672 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 30 Jun 2005 17:43:53 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j610hrFW016672
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=SXk9CyML21bQw9uOM/4LIH48qCEfAKd6c5j51Of6jP3HxlJ1Ovl7khMPentBu9GKc JJbpZJ9A88ypatIxFcT0q5ZlinNbnu0x+KQgzznwOp7jmdvZVOBGRtczf+PdwlCrQ7a EwXMEEJSRpJHBgkasewrvQW6TfzVxTkCvHr2mvA=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j610hrcn013482; Thu, 30 Jun 2005 17:43:53 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200507010043.j610hrcn013482@lab.smi.sendmail.com>
To: Tim Showalter <tjs@psaux.com>
Cc: Michael Haardt <michael@freenet-ag.de>, ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: 3028bis open issue #3: require 2047 decoding? 
In-reply-to: <42C453C9.8070207@psaux.com> 
References: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de>  <42C453C9.8070207@psaux.com> 
Date: Thu, 30 Jun 2005 17:43:53 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Tim Showalter <tjs@psaux.com> writes:
>Michael Haardt wrote:
>> Shouldn't the implementation be free what to convert them to? It may
>> chose a different unicode representation.  Do we need to enforce UTF-8?
>
>I realize the language in 3028 clearly implies implementations are 
>required to convert to UTF-8 but if an implementation wants to use UCS-4 
>or UCS-2 or UTF-7 internally, that must be allowed.  The specification 
>has no power to specify behavior that can't be externally observed, and 
>the text you cited is just wrong.
...

For 3028bis, 2.7.2, paragraph 2, how about:

	Comparisons are performed in Unicode.  Implementations convert
	text from header fields in all charsets [HEADER-CHARSET] to
	Unicode as input to the comparator (see 2.7.3).  Implementations
	must be capable of decoding US-ASCII, ISO-8859-1, the US-ASCII
	subset of ISO-8859-* character sets, and UTF-8.

with the new normative reference:

[HEADER-CHARSET]	Moore, K., "MIME (Multipurpose Internet Mail
			Extensions) Part Three: Message Header
			Extensions for Non-ASCII Text", RFC 2047,
			November 1996

Hmm, I think the paragraph needs to also specify that text in unknown
charsets never matches, no?

(You can't just map them to U+FFFD (replacement character) because you
don't know how many characters are encoded!)


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UMNlwG078981; Thu, 30 Jun 2005 15:23:47 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5UMNlhL078974; Thu, 30 Jun 2005 15:23:47 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UMNg4Y078892 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 15:23:43 -0700 (PDT) (envelope-from michael@freenet-ag.de)
Received: from [194.97.50.144] (helo=mx1.freenet.de) by mout0.freenet.de with esmtpa (Exim 4.52) id 1Do7RZ-0005E2-AF for ietf-mta-filters@imc.org; Fri, 01 Jul 2005 00:23:37 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6]) by mx1.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3) id 1Do7RZ-0004VI-96 for ietf-mta-filters@imc.org; Fri, 01 Jul 2005 00:23:37 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3) id 1Do7RW-0002QU-TU for ietf-mta-filters@imc.org; Fri, 01 Jul 2005 00:23:34 +0200
To: ietf-mta-filters@imc.org
Subject: Re: My open issues with RFC3028bis
Message-Id: <E1Do7RW-0002QU-TU@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Fri, 01 Jul 2005 00:23:34 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> Hmm, did you miss my reply on these points to your previous post?
> Rather than repeat my comments...
>
> http://www.imc.org/ietf-mta-filters/mail-archive/msg06094.html
>
> I think I was waiting for a response or more comments before making
> changes.  I should have added them to the open issues list while
> waiting.

Sorry, I probably really missed it. :(

> >Strings Containing Header Names

Section 2.4.2.2:

   A header name never contains a colon.  The "From" header refers to a
   line beginning "From:" (or "From   :", etc.).  No header will match
   the string "From:" due to the trailing colon.

No header will match it, but what's the result? How about ""? If users
write "From:", most likely they made a mistake.  Should that really not
cause an error?

> >MIME-Encoded NUL Characters
> >Header Test With Invalid MIME Encoding In Header

> Hmm.  To paraphrase (and mangle) something that Dave Crocker said at the
> meeting in Minneapolis: when there's a spec for something, it's a bad
> idea to try to address general problems arising from it anywhere but in
> that spec.

As I quoted, I see a contradiction in the base spec.  Either
interpretation could be valid, but only one probbaly is.  The fact that
the same Sieve code yields different results on different implementations
is not something to be described in the MIME RFCs.

> >String Arguments

As you can see, I agree with you and probably everybody else here
now.  Yet, the RFC still does not specify it.  If the collation draft
determines caseful or caseless matching, then please refer to it doing
so.  That does not answer how other extension names are being matched,
although we agree it should be caseful.

> My read of section 2.10.6 is that an implementation is only required to
> detect errors in code that is actually executed, but that it is
> permitted to also detect them code that is skipped ("if false { ... }")
> or not reached ("stop; ...").  Script writers should disable code using
> unsupported extensions by removing it completely or commenting it out,
> as they cannot depend on implementations accepting such code when
> wrapped in an "if false {...}" block.

That's what I finally thought: Everything is possible.  To me,
compile-time is both syntactic and semantic checks, but Sieve may be
compiled or interpreted.  An implementation may parse and interpret at
the same time, and not notice junk after executing "stop;".  It may build
a syntax tree, thus first parsing everything, and then interpret that,
only doing semantic checks on interpreted parts.  Or it may perform
semantic checks on the entire parse tree before interpreting it.

Perhaps we should split the description in syntactic, semantic and
run-time checks.  The syntax is described in section 8.  The description
of control structures, tests and actions must not talk of syntax, but
of semantics and run-time checks.

That's uncommon, because most languages (LISP being one exception) do as
much on the syntactic level as possible.  I have no idea why extensions
do not extend syntax instead of semantics with the requirement that
words of the extended grammar must be words of the generic grammar,
but I guess it is too late now.

What can be done is to use the terminology right.  When starting my
implementation, it confused me to no end that the previously described
syntax did not appear in the grammar.  I would like to save the next
person from that confusion:

----------
Sieve implementations MUST perform syntactic, semantic and run-time
checks on actually executed code.  Implementations are free to perform
those checks, or part of them, on not executed code, and they are free
to perform them before or during execution.
----------

Smells like the range found in BASIC implementations. :-)

Michael



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UL2X0x086285; Thu, 30 Jun 2005 14:02:33 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5UL2XEm086284; Thu, 30 Jun 2005 14:02:33 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mv.mv.com (osmium.mv.net [199.125.85.152]) by above.proper.com (8.12.11/8.12.9) with SMTP id j5UL2Wh6086278 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 14:02:32 -0700 (PDT) (envelope-from mem@mv.mv.com)
Received: (qmail 35848 invoked by uid 101); 30 Jun 2005 17:02:31 -0400
From: "Mark E. Mallett" <mem@mv.mv.com>
Date: Thu, 30 Jun 2005 17:02:31 -0400
To: Philip Guenther <guenther+mtafilters@sendmail.com>
Cc: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #1: envelope-sender argument for redirect?
Message-ID: <20050630210231.GH6915@osmium.mv.net>
References: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com>
User-Agent: Mutt/1.4.2.1i
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

On Wed, Jun 29, 2005 at 01:19:46AM -0700, Philip Guenther wrote:
> There was a suggestion that the 'redirect' action should provide a
> way to specify the envelope-from address used when the message was
> redirected.
> 
> While a nice idea, no one has said anything further on it, which
> says to me that we shouldn't add it as a new requirement on
> implementations.

Up until you posted, there wasn't much discussion on any of the 3 items
you emailed about separately, so I don't know if that conclusion follows
from that justification.  I suspect it's a correct conclusion though :-)

OTOH, I'm probably being dumb again (feel free to agree), but what's the
meta-stuff?  i.e.  how has 3028bis come about, what's the charter for
its creation, is there a call for submissions of items, etc?

mm



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UKLQCm041025; Thu, 30 Jun 2005 13:21:26 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5UKLQKw041024; Thu, 30 Jun 2005 13:21:26 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UKLO7D040990 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 13:21:24 -0700 (PDT) (envelope-from tjs@psaux.com)
Received: from [66.228.163.20] (trustwho.corp.yahoo.com [66.228.163.20]) by mrout1.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id j5UKJLE6089462; Thu, 30 Jun 2005 13:19:21 -0700 (PDT)
Message-ID: <42C453C9.8070207@psaux.com>
Date: Thu, 30 Jun 2005 13:19:21 -0700
From: Tim Showalter <tjs@psaux.com>
User-Agent: Mozilla Thunderbird 1.0 (X11/20050215)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Haardt <michael@freenet-ag.de>
CC: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #3: require 2047 decoding?
References: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de>
In-Reply-To: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Michael Haardt wrote:
> Shouldn't the implementation be free what to convert them to? It may
> chose a different unicode representation.  Do we need to enforce UTF-8?

I realize the language in 3028 clearly implies implementations are 
required to convert to UTF-8 but if an implementation wants to use UCS-4 
or UCS-2 or UTF-7 internally, that must be allowed.  The specification 
has no power to specify behavior that can't be externally observed, and 
the text you cited is just wrong.

Perhaps the text should have been simply "MIME parts SHOULD be 
canonicalized to Unicode prior to the match".  I'm sure there's a way to 
phrase it in a way that's completely encoding-neutral, though.

Tim



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UIjlfc039027; Thu, 30 Jun 2005 11:45:47 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5UIjltC039025; Thu, 30 Jun 2005 11:45:47 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UIjibS038956 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 11:45:46 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5UIjX9W013144 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 30 Jun 2005 11:45:34 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5UIjX9W013144
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=PwyiaeduGfELbe93eLlnbm9DyGW9pyFQ+jFUqXBkBG0LqUlAf5/56J4wnt1HXSRIr l0Ig3C8b+k03W0EoZSSbJ019Ql+rpNll4HCxK6mrjIph2N65O8DrlZ3dNKuXc8gEMA4 hBCMDyj6sdTw2ZWUGqjyZyT0SPhWdbRYqgGzaAk=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5UIjXf1084607; Thu, 30 Jun 2005 11:45:33 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506301845.j5UIjXf1084607@lab.smi.sendmail.com>
To: Michael Haardt <michael@freenet-ag.de>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: My open issues with RFC3028bis 
In-reply-to: <E1Dnvpt-0008Oq-Et@nostromo.freenet-ag.de> 
References: <E1Dnvpt-0008Oq-Et@nostromo.freenet-ag.de> 
Date: Thu, 30 Jun 2005 11:45:33 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Michael Haardt <michael@freenet-ag.de> writes:
>the current draft already closed many items on my list.  I may have
>missed some changes, but this is currently unsolved:
...
>Strings Containing Header Names
>MIME-Encoded NUL Characters
>Header Test With Invalid MIME Encoding In Header
>String Arguments

Hmm, did you miss my reply on these points to your previous post?
Rather than repeat my comments...

http://www.imc.org/ietf-mta-filters/mail-archive/msg06094.html

I think I was waiting for a response or more comments before making
changes.  I should have added them to the open issues list while
waiting.


>Sieve Syntax and Semantics
...
>RFC 3028 does not define if semantic checks are strict (always treat
>unknown extensions as errors) or lazy (treat unknown extensions as error,
>if they are executed), and since it employs a very generic grammar,
>it is not unreasonable for an implementation using a parser for the
>generic grammar to indeed process scripts that contain unknown commands
>in dead code.  It is just required to treat disabled but known extensions
>the same as unknown extensions.

My read of section 2.10.6 is that an implementation is only required to
detect errors in code that is actually executed, but that it is
permitted to also detect them code that is skipped ("if false { ... }")
or not reached ("stop; ...").  Script writers should disable code using
unsupported extensions by removing it completely or commenting it out,
as they cannot depend on implementations accepting such code when
wrapped in an "if false {...}" block.


What do other people think?  Should wording similar to that be added to
2.10.6?


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UA02pt064620; Thu, 30 Jun 2005 03:00:02 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5UA02vT064618; Thu, 30 Jun 2005 03:00:02 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout2.freenet.de (mout2.freenet.de [194.97.50.155]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5UA00lJ064564 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 03:00:00 -0700 (PDT) (envelope-from michael@freenet-ag.de)
Received: from [194.97.55.192] (helo=mx8.freenet.de) by mout2.freenet.de with esmtpa (Exim 4.52) id 1Dnvpu-0005wk-SO for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:59:58 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6]) by mx8.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3) id 1Dnvpu-0004Fw-PV for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:59:58 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3) id 1Dnvpt-0008Oq-Et for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:59:57 +0200
To: ietf-mta-filters@imc.org
Subject: My open issues with RFC3028bis
Message-Id: <E1Dnvpt-0008Oq-Et@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Thu, 30 Jun 2005 11:59:57 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Hello,

the current draft already closed many items on my list.  I may have
missed some changes, but this is currently unsolved:


Strings Containing Header Names

RFC 3028 does not specify what happens if a string denoting a header field
does not contain a valid name, e.g. it contains a colon for a header.
I generate an error on this case.  We just have this discussion on
"envelope".


Header Test With Invalid MIME Encoding In Header

Some MUAs process invalid base64 encoded data, generating junk.
Others ignore junk after seeing an equal sign in base64 encoded data.
RFC 2047 does not specify how to react in this case, other than stating
that a client must not forbid to process a message for that reason.
RFC 2045 specifies that invalid data should be ignored (appearantly
looking at end of line characters).  It also specifies that invalid data
may lead to rejecting messages containing them (and there it appears to
talk about true encoding violations), which is a clear contradiction to
ignoring them.

RFC 3028 does not specify how to process incorrect MIME words.
My implementation treats them literally.


String Arguments

There has been confusion if the string arguments to "require" are to be
matched case-sensitive or not.  The comparator default is case-insensitive
comparison, but "require" does not allow to specify a comparator, so
this default does not apply.  Lacking a clear specification, matching
the strings exactly makes most sense.  The same is valid for comparator
names, also specified as strings.  I think there is agreement in matching,
but I fail to see this being mentioned in RFC3028bis.


MIME-Encoded NUL Characters

Subject: =?iso-8859-1?q?abc=00def

header :contains "Subject" ["abc"]
header :contains "Subject" ["def"]
header :matches "Subject" ["abc?def"]

Sieve scripts can not contain NUL characters in strings, but mail headers
can contain MIME encoded NUL characters, which can never be matched by
Sieve scripts using exact comparisons.  Implementations that use C-style
strings will only evaulate the first test as true.

I still think this should be mentioned.


Sieve Syntax and Semantics

RFC 3028 confuses syntax and semantics sometimes.  It uses a generic
grammar as syntax for actions and tests and performs many checks during
semantic analysis.  Syntax is specified as grammar rule, semantics
with natural language, despite the latter often talking about syntax.
The intention was to provide a framework for the syntax that describes
current commands as well as future extensions, and describing commands
by semantics.

RFC 3028 does not define if semantic checks are strict (always treat
unknown extensions as errors) or lazy (treat unknown extensions as error,
if they are executed), and since it employs a very generic grammar,
it is not unreasonable for an implementation using a parser for the
generic grammar to indeed process scripts that contain unknown commands
in dead code.  It is just required to treat disabled but known extensions
the same as unknown extensions.

My implementation is strict, which means semantic errors are treated
the same as syntactic errors, no matter if in dead code or not.

Somehow awaiting the flames now, :)

Michael



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U9YM2J041942; Thu, 30 Jun 2005 02:34:22 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5U9YMMj041941; Thu, 30 Jun 2005 02:34:22 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U9YKrr041838 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 02:34:21 -0700 (PDT) (envelope-from michael@freenet-ag.de)
Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout1.freenet.de with esmtpa (Exim 4.52) id 1DnvR0-0003tP-S7 for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:34:14 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6]) by mx0.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3) id 1DnvR0-0002pZ-J0 for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:34:14 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3) id 1DnvQz-0008O1-CU for ietf-mta-filters@imc.org; Thu, 30 Jun 2005 11:34:13 +0200
To: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #3: require 2047 decoding?
Message-Id: <E1DnvQz-0008O1-CU@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Thu, 30 Jun 2005 11:34:13 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> That is, support for RFC 2047 is only a SHOULD and not a MUST.  Do
> we want to leave that as is or should it be made stricter, with a
> MUST support RFC 2047, MUST support conversion of US-ASCII and UTF-8
> and SHOULD support conversion of ISO-8859-1 and the US-ASCII subset
> of ISO-8859-*?

I would prefer that, but:

>    If implementations fail to support the above behavior, they MUST
>    conform to the following:
>
>       No two strings can be considered equal if one contains octets
>       greater than 127.

To me, that states that if an implementation fails to convert a character
set to UTF-8, two strings can not be equal if one contains octets greater
than 127.  Assuming that all unknown character sets are one-byte character
sets with the lower 128 octects being US-ASCII is not sound.  But perhaps
that's not what was meant.

>    MIME parts identified as using charsets other than UTF-8 as
>    defined in [UTF-8] SHOULD be converted to UTF-8 prior to the match.

Shouldn't the implementation be free what to convert them to? It may
chose a different unicode representation.  Do we need to enforce UTF-8?

>    If an implementation does not support conversion of a given
>    charset to UTF-8, it MAY compare against the US-ASCII subset
>    of the transfer-decoded character data instead.  Characters from
>    documents tagged with charsets that the local implementation
>    cannot convert to UTF-8 and text from mistagged documents MAY
>    be omitted or processed according to local conventions.

That sounds more useful than RFC 3028 to me, but I slightly prefer to
match the raw transfer-encoded data.  Why bother decoding it, if you
can entirely unsure what it may be anyway?

Whatever the result is, I agree that comparisons for header and body
should be the same.

Michael



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U7SE31029107; Thu, 30 Jun 2005 00:28:14 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5U7SE1G029106; Thu, 30 Jun 2005 00:28:14 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from msa.uoa.gr (msa.uoa.gr [195.134.100.72]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5U7SCLA028966 for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 00:28:13 -0700 (PDT) (envelope-from avel@noc.uoa.gr)
Received: by MSA with id 1D24E7A8D7EC790644DB6ECA6B5DB89B604DC6D2
Received: from null.noc.uoa.gr (null.noc.uoa.gr [195.134.100.40]) (authenticated bits=0) by msa.uoa.gr (8.12.11/8.12.11) with ESMTP id j5U7S5Tf021838 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for <ietf-mta-filters@imc.org>; Thu, 30 Jun 2005 10:28:05 +0300 (EEST)
Subject: Re: 3028bis open issue #2: unknown envelope-part names
From: Alexandros Vellis <avel@noc.uoa.gr>
To: ietf-mta-filters@imc.org
In-Reply-To: <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com>  <1120062467.5234.34.camel@amy> <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
Content-Type: text/plain
Organization: National & Kapodistrian University of Athens
Date: Thu, 30 Jun 2005 10:29:22 +0300
Message-Id: <1120116562.15827.24.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 
Content-Transfer-Encoding: 7bit
X-UoAMSAId: 1D24E7A8D7EC790644DB6ECA6B5DB89B604DC6D2
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

On Wed, 2005-06-29 at 14:01 -0700, Philip Guenther wrote:

> B) require implementations to reject parts other than "from" and "to"
>    unless declared via some new extension
>    CONS: makes Cyrus implementation non-conforming; breaks scripts that
>          haven't been updated to require the new extension
>    PROS: <standard "declare before use" argument>, scripts using "auth"
>          aren't portable anyway

I believe portability is not so much of an issue, as much as what
decisions a GUI program can make when building Sieve scripts.

As a Sieve client, I would very much like an extra capability being
returned, 'envelope-auth', and use the LMTP auth. If it's not there, I
can fall back to other means of verification, such as RFC822 headers.

The question whether the same capability MUST be require'd in the script
itself is something that you know better than me if it should be
enforced. I don't have any strong opinions on the <standard "declare
before use" argument>. And since I haven't implemented 'envelope' yet at
all, I don't worry about backward compatibility and thus shouldn't have
a say on this particular issue. :)

Alexandros Vellis




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TMGiG8072034; Wed, 29 Jun 2005 15:16:44 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5TMGiHN072031; Wed, 29 Jun 2005 15:16:44 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mv.mv.com (osmium.mv.net [199.125.85.152]) by above.proper.com (8.12.11/8.12.9) with SMTP id j5TMGga5071990 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 15:16:43 -0700 (PDT) (envelope-from mem@mv.mv.com)
Received: (qmail 61979 invoked by uid 101); 29 Jun 2005 18:16:42 -0400
From: "Mark E. Mallett" <mem@mv.mv.com>
Date: Wed, 29 Jun 2005 18:16:42 -0400
To: Philip Guenther <guenther+mtafilters@sendmail.com>
Cc: Alexandros Vellis <avel@noc.uoa.gr>, ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
Message-ID: <20050629221642.GA56916@osmium.mv.net>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com> <1120062467.5234.34.camel@amy> <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
User-Agent: Mutt/1.4.2.1i
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

On Wed, Jun 29, 2005 at 02:01:31PM -0700, Philip Guenther wrote:
> 
> B) require implementations to reject parts other than "from" and "to"
>    unless declared via some new extension

I'd go with this one.  I've silently ignored others up until this
point but have had a long-standing private implementation note that
it needs to be resolved, vis:

TODO    /* Not really clear if this is an error- but for now we'll
           just treat it as a non-match or a zero count.
        */


>    CONS: makes Cyrus implementation non-conforming; breaks scripts that
>          haven't been updated to require the new extension

There are other dimensions to the question, of course.  One is whether a
prohibition under (B) will be a "SHOULD NOT" or a "MUST NOT" (MUST NOT
seems better to me, but SHOULD NOT will work better as a retroactive
recommendation); another is whether the spec should have an opinion on
whether the error should be detected at parse/compile time or at
execution time (I'd either go with either the latter or unspecified).

mm



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TLnV8R041888; Wed, 29 Jun 2005 14:49:31 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5TLnV6g041887; Wed, 29 Jun 2005 14:49:31 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mout2.freenet.de (mout2.freenet.de [194.97.50.155]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TLnT4a041838 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 14:49:30 -0700 (PDT) (envelope-from michael@freenet-ag.de)
Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout2.freenet.de with esmtpa (Exim 4.52) id 1DnkQy-0000x0-KP for ietf-mta-filters@imc.org; Wed, 29 Jun 2005 23:49:28 +0200
Received: from nostromo.freenet-ag.de ([194.97.7.6]) by mx0.freenet.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 #3) id 1DnkQy-0003zv-GX for ietf-mta-filters@imc.org; Wed, 29 Jun 2005 23:49:28 +0200
Received: from michael by nostromo.freenet-ag.de with local (ID michael) (Exim 4.52 #3) id 1DnkQw-00089B-5o for ietf-mta-filters@imc.org; Wed, 29 Jun 2005 23:49:26 +0200
To: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
Message-Id: <E1DnkQw-00089B-5o@nostromo.freenet-ag.de>
From: Michael Haardt <michael@freenet-ag.de>
Date: Wed, 29 Jun 2005 23:49:26 +0200
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> D) roll "auth" into the base-spec
>    CONS: breaks lots of implementations; have to define what it means in
>          implementations that don't have access to SMTP/LMTP AUTH info;
>          why have an extension mechanism if we're not going to use it?
>    PROS: doesn't break Cyrus implementation or scripts using "auth"

Authenticated SMTP is common these days and being able to use it in the
envelope test makes sense to me.  The Exim implementation currently
rejects anything but "to" and "from", but I had no problem to add
"auth", thus having one broken implementation less.  Although I don't
like how Cyrus silently introduced it, it _is_ useful and having to use
"envelope-auth" besides "envelope" looks awkward to me.  Opinions from
other implementations? Would the change be a problem?

But: What does "auth" actually do? Does it contain the authenticating ID
or the authenticated sender? Neither is a problem for me, I just have
to know.  Implementations that can not access this information could
behave as with comparing header fields not present in the message.

> B) require implementations to reject parts other than "from" and "to"
>    unless declared via some new extension
>    CONS: makes Cyrus implementation non-conforming; breaks scripts that
>          haven't been updated to require the new extension
>    PROS: <standard "declare before use" argument>, scripts using "auth"
>          aren't portable anyway

If we decide that D is not an option, this is my second choice.  Silently
ignoring mistakes never pays off in the long run, so let's stay safe
and clean.  Cyrus should not have introduced a new feature that way,
but indeed RFC 3028 was not clear how keys other than "from" and "to"
MUST be processed.

I don't like A and C at all.

Michael



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TL1awN090188; Wed, 29 Jun 2005 14:01:36 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5TL1avo090187; Wed, 29 Jun 2005 14:01:36 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TL1ZCB090128 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 14:01:35 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5TL1Wa4026881 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 29 Jun 2005 14:01:32 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5TL1Wa4026881
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=kuOfD2JlJR3ziX4Yx8Rnuqhz1XSTK68RHHmB7iqxe1ptTVp2dSqoV+1W2Eha/Fzoy Ri6jfomPP4I9yfqxR6+gVBN23v/+nSPaJyawNRGTz09bhFFgm4+ihMcNtqxA89eFgub EOW71VNNYdIpIetUNJ7Fa9aqIsLYwEu5c+DFoHM=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5TL1Vic070498; Wed, 29 Jun 2005 14:01:32 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506292101.j5TL1Vic070498@lab.smi.sendmail.com>
To: Alexandros Vellis <avel@noc.uoa.gr>
Cc: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: Re: 3028bis open issue #2: unknown envelope-part names 
In-reply-to: <1120062467.5234.34.camel@amy> 
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com>  <1120062467.5234.34.camel@amy> 
Date: Wed, 29 Jun 2005 14:01:31 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Alexandros Vellis <avel@noc.uoa.gr> writes:
>Alexey Melnikov wrote:

>> I still think that an implementation should treat an unrecognized 
>> envelope part as an error. Scripts should not be using a feature without 
>> a proper require statement.
>
>I don't feel strongly about my vote, and I'm not a guru of SMTP
>protocols either, so as long as the 'auth' is added in the
>clarification, that's fine with me too. 8-)

I think we have to choose among the following:

A) leave the behavior undefined if a script uses envelope-parts other
   than "from" and "to"
   CONS: such parts (ala "auth") effectively become undeclared, unnamed
         extensions; scripts can't depend on support; no way to test for
         support (e.g., in managesieve)
   PROS: breaks neither existing implementations nor existing scripts

B) require implementations to reject parts other than "from" and "to"
   unless declared via some new extension
   CONS: makes Cyrus implementation non-conforming; breaks scripts that
         haven't been updated to require the new extension
   PROS: <standard "declare before use" argument>, scripts using "auth"
         aren't portable anyway

C) require implementations to ignore all unknown parts, or maybe just
   "auth"
   CONS: breaks lots of implementations; script behavior could change if
         an implementation started recognizing new parts
   PROS: doesn't break existing scripts using "auth"

D) roll "auth" into the base-spec
   CONS: breaks lots of implementations; have to define what it means in
         implementations that don't have access to SMTP/LMTP AUTH info;
         why have an extension mechanism if we're not going to use it?
   PROS: doesn't break Cyrus implementation or scripts using "auth"


It sounds like you're suggesting (C), yes?  Do yo have any comments on
the pros and cons in the above list or the tradeoffs among them?


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5THi23B084445; Wed, 29 Jun 2005 10:44:02 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5THi2ix084443; Wed, 29 Jun 2005 10:44:02 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5THi14n084428 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 10:44:01 -0700 (PDT) (envelope-from tjs@psaux.com)
Received: from [66.228.163.20] (trustwho.corp.yahoo.com [66.228.163.20]) by mrout1.yahoo.com (8.13.4/8.13.4/y.out) with ESMTP id j5THfW2s015364; Wed, 29 Jun 2005 10:41:33 -0700 (PDT)
Message-ID: <42C2DD4C.3000302@psaux.com>
Date: Wed, 29 Jun 2005 10:41:32 -0700
From: Tim Showalter <tjs@psaux.com>
User-Agent: Mozilla Thunderbird 1.0 (X11/20050215)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Alexey Melnikov <alexey.melnikov@isode.com>
CC: Alexandros Vellis <avel@noc.uoa.gr>, ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com>
In-Reply-To: <42C29F8B.9040203@isode.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

>> So in the end, "auth" should be allowed to be there, apart from 'from'
>> and 'to'.
>>
> I agree. In fact this is what Cyrus Sieve does already.
> 
>> OK, you could allow just that one through too, but what if more such
>> envelope "extensions" appear in the future? A bit difficult but
>> still. :)
>>  
>>
> I still think that an implementation should treat an unrecognized 
> envelope part as an error. Scripts should not be using a feature without 
> a proper require statement.

I agree wholeheartedly.

Tim



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TGRuSG004645; Wed, 29 Jun 2005 09:27:56 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5TGRutN004641; Wed, 29 Jun 2005 09:27:56 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from msa.uoa.gr (msa.uoa.gr [195.134.100.72]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TGRshx004474 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 09:27:55 -0700 (PDT) (envelope-from avel@noc.uoa.gr)
Received: by MSA with id 1B39FB5B8B039B47051A67426318A465997A60B6
Received: from amy (ppp3-adsl-79.ath.forthnet.gr [62.1.226.79]) (authenticated bits=0) by msa.uoa.gr (8.12.11/8.12.11) with ESMTP id j5TGRlN5019555 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 19:27:48 +0300 (EEST)
Subject: Re: 3028bis open issue #2: unknown envelope-part names
From: Alexandros Vellis <avel@noc.uoa.gr>
To: ietf-mta-filters@imc.org
In-Reply-To: <42C29F8B.9040203@isode.com>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain> <42C29F8B.9040203@isode.com>
Content-Type: text/plain
Organization: National & Kapodistrian University of Athens
Date: Wed, 29 Jun 2005 19:27:47 +0300
Message-Id: <1120062467.5234.34.camel@amy>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.2 
Content-Transfer-Encoding: 7bit
X-UoAMSAId: 1B39FB5B8B039B47051A67426318A465997A60B6
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Alexey Melnikov wrote:

> I still think that an implementation should treat an unrecognized 
> envelope part as an error. Scripts should not be using a feature without 
> a proper require statement.

I don't feel strongly about my vote, and I'm not a guru of SMTP
protocols either, so as long as the 'auth' is added in the
clarification, that's fine with me too. 8-)

Alexandros




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDSKZ3096253; Wed, 29 Jun 2005 06:28:20 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5TDSKgj096252; Wed, 29 Jun 2005 06:28:20 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDSJ3c096125 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 06:28:19 -0700 (PDT) (envelope-from ken@oceana.com)
Received: from [192.168.137.140] (69-161-65-27.bflony.adelphia.net [69.161.65.27]) (authenticated bits=0) by eagle.oceana.com (8.13.2/8.13.2) with ESMTP id j5TDSBOG019059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 09:28:11 -0400 (EDT)
Message-ID: <42C2A25F.8060900@oceana.com>
Date: Wed, 29 Jun 2005 09:30:07 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain>
In-Reply-To: <1120049606.10806.17.camel@localhost.localdomain>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0 (BAYES_00)
X-Scanned-By: MIMEDefang 2.39
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Alexandros Vellis wrote:

> On Wed, 2005-06-29 at 01:06 -0700, Philip Guenther wrote:
> 
>>The behavior of the 'envelope' test does not appear to be defined
>>for envelope-parts other than 'from' and 'to', ala:
>>	envelope "cc" "bob@example.com"
>>
>>Should that be a required error, required to be silently ignored,
>>or implementation defined?
>>
>>(The only opinion other than my own that I've heard on this felt
>>that it should be a required error, so if no one speaks up, that's
>>the way it'll go.)
> 
> 
> I would actually vote for 'implementation defined' (first choice) or
> 'silently ignored' (2nd). :-)
> 
> Why? I was thinking of the LMTP AUTH that can appear in an {S|L}MTP
> transaction:
> 
> MAIL FROM=<> AUTH=<user>
> 
> this could be mostly useful it it could be referenced to inside the
> Sieve scripts.
> 
> Since it can be considered part of the envelope, one could use something
> like :envelope "auth" "is" "avel" , and in the end use in the Sieve
> script the information that a user was authenticated when sending a
> message.
> 
> So in the end, "auth" should be allowed to be there, apart from 'from'
> and 'to'.
> 
> OK, you could allow just that one through too, but what if more such
> envelope "extensions" appear in the future? A bit difficult but
> still. :)

FWIW, CMU Sieve already supports "auth" as an envelope test.


-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDIG2X083760; Wed, 29 Jun 2005 06:18:16 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5TDIGQU083758; Wed, 29 Jun 2005 06:18:16 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TDIFlY083673 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 06:18:15 -0700 (PDT) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.179] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (internal) with ESMTPA; Wed, 29 Jun 2005 14:18:04 +0100
Message-ID: <42C29F8B.9040203@isode.com>
Date: Wed, 29 Jun 2005 14:18:03 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Alexandros Vellis <avel@noc.uoa.gr>
CC: ietf-mta-filters@imc.org
Subject: Re: 3028bis open issue #2: unknown envelope-part names
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com> <1120049606.10806.17.camel@localhost.localdomain>
In-Reply-To: <1120049606.10806.17.camel@localhost.localdomain>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Alexandros Vellis wrote:

>On Wed, 2005-06-29 at 01:06 -0700, Philip Guenther wrote:
>  
>
>>The behavior of the 'envelope' test does not appear to be defined
>>for envelope-parts other than 'from' and 'to', ala:
>>	envelope "cc" "bob@example.com"
>>
>>Should that be a required error, required to be silently ignored,
>>or implementation defined?
>>
>>(The only opinion other than my own that I've heard on this felt
>>that it should be a required error, so if no one speaks up, that's
>>the way it'll go.)
>>    
>>
>
>I would actually vote for 'implementation defined' (first choice) or
>'silently ignored' (2nd). :-)
>
>Why? I was thinking of the LMTP AUTH that can appear in an {S|L}MTP
>transaction:
>
>MAIL FROM=<> AUTH=<user>
>
>this could be mostly useful it it could be referenced to inside the
>Sieve scripts.
>
>Since it can be considered part of the envelope, one could use something
>like :envelope "auth" "is" "avel" , and in the end use in the Sieve
>script the information that a user was authenticated when sending a
>message.
>
>So in the end, "auth" should be allowed to be there, apart from 'from'
>and 'to'.
>  
>
I agree. In fact this is what Cyrus Sieve does already.

>OK, you could allow just that one through too, but what if more such
>envelope "extensions" appear in the future? A bit difficult but
>still. :)
>  
>
I still think that an implementation should treat an unrecognized 
envelope part as an error. Scripts should not be using a feature without 
a proper require statement.

Alexey



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TCqKJ4049247; Wed, 29 Jun 2005 05:52:20 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5TCqJY2049246; Wed, 29 Jun 2005 05:52:20 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from msa.uoa.gr (msa.uoa.gr [195.134.100.72]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5TCqIEi049076 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 05:52:19 -0700 (PDT) (envelope-from avel@noc.uoa.gr)
Received: by MSA with id A128EA9BCC17082B69623F6B4496C902CDA5AB3C
Received: from null.noc.uoa.gr (null.noc.uoa.gr [195.134.100.40]) (authenticated bits=0) by msa.uoa.gr (8.12.11/8.12.11) with ESMTP id j5TCqBjT018277 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 15:52:11 +0300 (EEST)
Subject: Re: 3028bis open issue #2: unknown envelope-part names
From: Alexandros Vellis <avel@noc.uoa.gr>
To: ietf-mta-filters@imc.org
In-Reply-To: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
References: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
Content-Type: text/plain
Organization: National & Kapodistrian University of Athens
Date: Wed, 29 Jun 2005 15:53:25 +0300
Message-Id: <1120049606.10806.17.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 
Content-Transfer-Encoding: 7bit
X-UoAMSAId: A128EA9BCC17082B69623F6B4496C902CDA5AB3C
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

On Wed, 2005-06-29 at 01:06 -0700, Philip Guenther wrote:
> 
> The behavior of the 'envelope' test does not appear to be defined
> for envelope-parts other than 'from' and 'to', ala:
> 	envelope "cc" "bob@example.com"
> 
> Should that be a required error, required to be silently ignored,
> or implementation defined?
> 
> (The only opinion other than my own that I've heard on this felt
> that it should be a required error, so if no one speaks up, that's
> the way it'll go.)

I would actually vote for 'implementation defined' (first choice) or
'silently ignored' (2nd). :-)

Why? I was thinking of the LMTP AUTH that can appear in an {S|L}MTP
transaction:

MAIL FROM=<> AUTH=<user>

this could be mostly useful it it could be referenced to inside the
Sieve scripts.

Since it can be considered part of the envelope, one could use something
like :envelope "auth" "is" "avel" , and in the end use in the Sieve
script the information that a user was authenticated when sending a
message.

So in the end, "auth" should be allowed to be there, apart from 'from'
and 'to'.

OK, you could allow just that one through too, but what if more such
envelope "extensions" appear in the future? A bit difficult but
still. :)

Alexandros




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T8JlgR068196; Wed, 29 Jun 2005 01:19:47 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5T8Jl8e068195; Wed, 29 Jun 2005 01:19:47 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T8Jkk6068183 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:19:46 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5T8JkOA006762 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:19:46 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5T8JkOA006762
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=uonSIFVtZyotW3PtT+5+175oK4lf9eNYMhXI7bhf5+G8eRXf4Hh4Qmn3bjPwjsd2E BaTtrqHW+sfty9aGwMEAqHcWd73tLgPWPoRU6RegAHYCalOjAZbE7/e/zAj3viDr1FJ u+5BnaW+6eQDIEXs9+bJ62bj5SWj/OiECs/aSbw=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5T8JkRs008773 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:19:46 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506290819.j5T8JkRs008773@lab.smi.sendmail.com>
To: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: 3028bis open issue #1: envelope-sender argument for redirect?
Date: Wed, 29 Jun 2005 01:19:46 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

There was a suggestion that the 'redirect' action should provide a
way to specify the envelope-from address used when the message was
redirected.

While a nice idea, no one has said anything further on it, which
says to me that we shouldn't add it as a new requirement on
implementations.

I'm therefore removing this item from the open-issues list; if
someone wants that control they should write up an extension that
adds it.


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T86dMX056486; Wed, 29 Jun 2005 01:06:39 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5T86doo056484; Wed, 29 Jun 2005 01:06:39 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T86drF056438 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:06:39 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5T86aE2004262 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:06:36 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5T86aE2004262
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=oKGqXjB68ydafUWtvHc09uqTRl2go7o+uFEraTtdWGa8d5Q+/J8Efc3+PuklY5G4J C36sFeHrtex0ILGx0FkudAMaglWRKD/vRtV7NO7E7xiOEC1TW1oIp/L1L0+WxWKc6Ec AsAMHrP9ckU2DlVz5r5ZjsATA/+STQX/rWc+b6g=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5T86aiA007721 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 01:06:36 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506290806.j5T86aiA007721@lab.smi.sendmail.com>
To: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: 3028bis open issue #2: unknown envelope-part names
Date: Wed, 29 Jun 2005 01:06:36 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

The behavior of the 'envelope' test does not appear to be defined
for envelope-parts other than 'from' and 'to', ala:
	envelope "cc" "bob@example.com"

Should that be a required error, required to be silently ignored,
or implementation defined?

(The only opinion other than my own that I've heard on this felt
that it should be a required error, so if no one speaks up, that's
the way it'll go.)


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T7tFqR046189; Wed, 29 Jun 2005 00:55:15 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5T7tFmD046187; Wed, 29 Jun 2005 00:55:15 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from foon.sendmail.com (tls.sendmail.com [209.246.26.40]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5T7tE9n046148 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 00:55:14 -0700 (PDT) (envelope-from guenther@sendmail.com)
Received: from lab.smi.sendmail.com ([10.210.100.93]) by foon.sendmail.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j5T7tCiW001585 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 00:55:12 -0700
X-DomainKeys: Sendmail DomainKeys Filter v0.2.7 foon.sendmail.com j5T7tCiW001585
DomainKey-Signature: a=rsa-sha1; s=tls; d=sendmail.com; c=nofws; q=dns; b=oWRRXIcqdWeQLzd9mfzcygf7+8h+tVF5Xp50qj5nRmkN97XqhVkrcSzqmMKl4Qycq +qyOlea0yxaffP+7GheMV4eWVVEk08nZp+Z7IShqHk3Dp69U1p938ndWW1qwcZsE2hl i/8Yx0yRtWtgsKdKLJSF+/nSpZD3AUTXuHxB7Sk=
Received: from lab.smi.sendmail.com (localhost [127.0.0.1]) by lab.smi.sendmail.com (8.12.11/8.12.11) with ESMTP id j5T7tC71006934 for <ietf-mta-filters@imc.org>; Wed, 29 Jun 2005 00:55:12 -0700 (PDT) (envelope-from guenther@lab.smi.sendmail.com)
Message-Id: <200506290755.j5T7tC71006934@lab.smi.sendmail.com>
To: ietf-mta-filters@imc.org
From: Philip Guenther <guenther+mtafilters@sendmail.com>
Subject: 3028bis open issue #3: require 2047 decoding?
Date: Wed, 29 Jun 2005 00:55:12 -0700
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Currently, 3028bis, section 2.7.2 is unchanged from RFC 3028:

----
2.7.2.   Comparisons Across Character Sets

   All Sieve scripts are represented in UTF-8, but messages may involve
   a number of character sets.  In order for comparisons to work across
   character sets, implementations SHOULD implement the following
   behavior:

      Implementations decode header charsets to UTF-8.  Two strings are
      considered equal if their UTF-8 representations are identical.
      Implementations should decode charsets represented in the forms
      specified by [MIME] for both message headers and bodies.
      Implementations must be capable of decoding US-ASCII, ISO-8859-1,
      the ASCII subset of ISO-8859-* character sets, and UTF-8.

   If implementations fail to support the above behavior, they MUST
   conform to the following:

      No two strings can be considered equal if one contains octets
      greater than 127.
----

That is, support for RFC 2047 is only a SHOULD and not a MUST.  Do
we want to leave that as is or should it be made stricter, with a
MUST support RFC 2047, MUST support conversion of US-ASCII and UTF-8
and SHOULD support conversion of ISO-8859-1 and the US-ASCII subset
of ISO-8859-*?



This question arose from a query from Bob Johannessen during the
WGLC of the 'body' extension on that extension's requirements for
charset conversion.  Those requirements currently read:

   MIME parts identified as using charsets other than UTF-8 as
   defined in [UTF-8] SHOULD be converted to UTF-8 prior to the match.
   A conversion from US-ASCII to UTF-8 MUST be supported.
   If an implementation does not support conversion of a given
   charset to UTF-8, it MAY compare against the US-ASCII subset
   of the transfer-decoded character data instead.  Characters from
   documents tagged with charsets that the local implementation
   cannot convert to UTF-8 and text from mistagged documents MAY
   be omitted or processed according to local conventions.

Now, I had always read that paragraph as requiring support for
matching UTF-8 against text parts labelled as being in UTF-8 or
US-ASCII; treating a UTF-8 part as if it was US-ASCII with some
unmatching octets was banned.  On reflection, I now think that
paragraph should be read as a giving practically the same choice
as section 2.7.2 in the base-spec and that it should therefore be
simply replaced with a reference to that section in the base-spec,
ala:
	Implementations MUST use the same rules for comparisons
	against body parts in charsets other than UTF-8 as they use
	for comparisons against header fields in such charsets (c.f.
	[SIEVE] section 2.7.2).


What are peoples' opinions on the base-spec and body-extension
requirements in this area?


Philip Guenther



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5OBewcc002434; Fri, 24 Jun 2005 04:40:58 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5OBewhP002433; Fri, 24 Jun 2005 04:40:58 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5OBevSm002413 for <ietf-mta-filters@imc.org>; Fri, 24 Jun 2005 04:40:58 -0700 (PDT) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.176] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (internal) with ESMTPA; Fri, 24 Jun 2005 12:40:56 +0100
Message-ID: <42BBF149.90601@isode.com>
Date: Fri, 24 Jun 2005 12:40:57 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: MTA filtering mailing list <ietf-mta-filters@imc.org>
Subject: Sieve WG meeting in Paris
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

I've requested a 2 hours slot at Paris IETF. I haven't seen the agenda yet.
Can I please ask editors to reply directly to me and indicate if the are 
planning to come, not planning to come or still deciding.

Thanks,
Alexey



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j56JlZTx063811; Mon, 6 Jun 2005 12:47:35 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j56JlZNO063810; Mon, 6 Jun 2005 12:47:35 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j56JlWeE063796 for <ietf-mta-filters@imc.org>; Mon, 6 Jun 2005 12:47:35 -0700 (PDT) (envelope-from dinaras@cnri.reston.va.us)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA03679; Mon, 6 Jun 2005 15:47:30 -0400 (EDT)
Message-Id: <200506061947.PAA03679@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: i-d-announce@ietf.org
Cc: ietf-mta-filters@imc.org
From: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-sieve-3028bis-02.txt
Date: Mon, 06 Jun 2005 15:47:30 -0400
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

--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: An Email Filtering Language
	Author(s)	: T. Showalter, P. Guenther
	Filename	: draft-ietf-sieve-3028bis-02.txt
	Pages		: 38
	Date		: 2005-6-6
	
This document describes a language for filtering email messages at
   time of final delivery.  It is designed to be implementable on either
   a mail client or mail server.  It is meant to be extensible, simple,
   and independent of access protocol, mail architecture, and operating
   system.  It is suitable for running on a mail server where users may
   not be allowed to execute arbitrary programs, such as on black box
   Internet Message Access Protocol (IMAP) servers, as it has no
   variables, loops, or ability to shell out to external programs.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-sieve-3028bis-02.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of the message.  
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.


Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-sieve-3028bis-02.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-sieve-3028bis-02.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
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: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<2005-6-6161940.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-sieve-3028bis-02.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-sieve-3028bis-02.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<2005-6-6161940.I-D@ietf.org>

--OtherAccess--

--NextPart--




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51JqHTu065055; Wed, 1 Jun 2005 12:52:17 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j51JqHhw065054; Wed, 1 Jun 2005 12:52:17 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mv.mv.com (osmium.mv.net [199.125.85.152]) by above.proper.com (8.12.11/8.12.9) with SMTP id j51JqG93065047 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 12:52:16 -0700 (PDT) (envelope-from mem@mv.mv.com)
Received: (qmail 59266 invoked by uid 101); 1 Jun 2005 15:52:15 -0400
From: "Mark E. Mallett" <mem@mv.mv.com>
Date: Wed, 1 Jun 2005 15:52:15 -0400
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
Cc: ietf-mta-filters@imc.org
Subject: Re: security review of variables
Message-ID: <20050601195215.GN43116@osmium.mv.net>
References: <1117640630.5871.182.camel@chico.njus.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1117640630.5871.182.camel@chico.njus.no>
User-Agent: Mutt/1.4.2.1i
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

On Wed, Jun 01, 2005 at 05:43:50PM +0200, Kjetil Torgrim Homme wrote:
>         Jeffrey Hutzelman thinks a mechanism for quoting characters with
>         special meaning in regex should be available.  this could be a
>         modifier for SET, e.g. :quoteregex.

Agreed (and with :quotematches as Ned noted later); I've run into this
issue myself.

mm



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51HDVSJ052419; Wed, 1 Jun 2005 10:13:31 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j51HDVTp052418; Wed, 1 Jun 2005 10:13:31 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51HDTCO052410 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:13:30 -0700 (PDT) (envelope-from ned.freed@mrochek.com)
MIME-version: 1.0
Content-transfer-encoding: 8BIT
Content-type: TEXT/PLAIN; charset=ISO-8859-1
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01LOX713ZY4G00004T@mauve.mrochek.com> for ietf-mta-filters@imc.org; Wed, 01 Jun 2005 10:13:19 -0700 (PDT)
Cc: ietf-mta-filters@imc.org
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
Message-id: <01LOXYQLK7G600004T@mauve.mrochek.com>
Date: Wed, 01 Jun 2005 09:04:43 -0700 (PDT)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: security review of variables
In-reply-to: "Your message dated Wed, 01 Jun 2005 17:43:50 +0200" <1117640630.5871.182.camel@chico.njus.no>
References: <1117640630.5871.182.camel@chico.njus.no>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> this is an attempt to summarise the feedback received from security
> reviews by Love Hörnquist Åstrand, Sam Hartman and Jeffrey Hutzelman,
> and with input from Alexey Melnikov.

> the main (only) issue was the behaviour of length limits.

>         how does modifiers to SET interact with length limits?  current
>         modifiers can't increase length.

>         variables which exceed implementation limits are silently
>         truncated when stored.  there is no way for a script to discover
>         implementation limits and take appropriate action.  among the
>         reviewers, there was consensus that at a minimum the security
>         aspects of this behaviour needs to be documented.

Well, the obvious security issue here is that a script that pulls data out of a
header and then tests it may be able to be bypassed by putting a bunch of
leading material in the header so truncation occurs and the test fails. This is
something of a stretch, however, given that most such tests can be bypassed
simply by omitting the data being tested for entirely.

I'm curious what other supposed security issues there are with truncation. I'm
also skeptical that this is as big a mountain as they seem to think - sure
seems more like a molehill to me.

>         an
>         alternative suggestion was to establish a namespace where such
>         implementation values can be looked up.
        
Alternative to what? In order for such information to be useful a script has to
be able to employ it meaningfully. So I find that there's an implementation
limit of foo. What do I do now? Code around it? If the limit can be coded
around without too much trouble why not code it that way for better portability
in the first place? Finding another implementation with a larger limit is
rarely an option... this really doesn't seem to accomplish much.

The only case I can imagine where this might be useful is when I know in
advance the length of the data I'm dealing with and want to check and see if it
can be processed. But the minimum maximums seem sufficient to cover this case,
so I'm left with this "alternative" in fact being no solution to any useful
problem.

It seems to me the useful alternative would be to have a way of testing to see
if truncation has occured. This way you could code tests to see if the
dataa being processed is abnormally large and respond accordingly.

But even this is of extremely marginal utility, for two reasons. First, string
sizes can already be checked, and it probably makes more sense to see if
something is abnormally long rather than checking to see if it has bumped up
against a truncation limit. Second, the availability of such a mechanism does
not mean it will actually be used, and my guess is that any such feature (and
this includes the namespace stuff) will see little if any actual use. And
rarely used features are security risks in and of themselves.

>         there were worries that other extensions would want some other
>         failure mode than "silent truncation" when such limits are
>         reached.  I'd like to comment that the limit only concerns
>         storing a value, ie. is restricted to the action SET and the
>         implicit storage of match variables from tests.  Sieve currently
>         has no specified limit to the static length of string or
>         multi-line, and it's unclear to me whether a conformant
>         implementation is allowed to impose such limits.

> non-security objections:

>         Love Åstrand thinks restricting variable names to the English
>         alphabet is a real problem.

Funny, it doesn't seem to have exactly been a showstopper in a truly vast
number of programming languages. Absent specifics as to why this is a real
problem, IMO this should simply be ignored.

>         Jeffrey Hutzelman thinks a mechanism for quoting characters with
>         special meaning in regex should be available.  this could be a
>         modifier for SET, e.g. :quoteregex.

This, OTOH, is IMO a good idea, although we need :quotematches more than we
need :quoteregex. I support adding this to the variables extension.
Implementation is only a few lines of code, and it can and will be used.

>         Jeffrey Hutzelman thinks the text regarding interaction with
>         regex should be in whichever of variables or regex is published
>         last, so that what is a normative reference isn't mislabeled as
>         informative.

I guess I have no problem with this, but then again I personally find a lot of
the tension and angst over reference classification to be overdone.

				Ned



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51GAj6o048089; Wed, 1 Jun 2005 09:10:45 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j51GAjxt048087; Wed, 1 Jun 2005 09:10:45 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51GAirj048080 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 09:10:45 -0700 (PDT) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.175] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (internal) with ESMTPA; Wed, 1 Jun 2005 17:10:39 +0100
Message-ID: <429DDE01.1090703@isode.com>
Date: Wed, 01 Jun 2005 17:10:41 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
CC: ietf-mta-filters@imc.org
Subject: Re: security review of variables
References: <1117640630.5871.182.camel@chico.njus.no>
In-Reply-To: <1117640630.5871.182.camel@chico.njus.no>
MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-transfer-encoding: 8bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Kjetil Torgrim Homme wrote:

>non-security objections:
>
>        Love Åstrand thinks restricting variable names to the English
>        alphabet is a real problem.  
>
Our discussion left me with impression that this is not an issue.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Fi5fD045705; Wed, 1 Jun 2005 08:44:05 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j51Fi5nE045704; Wed, 1 Jun 2005 08:44:05 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from pat.uio.no (IDENT:7411@pat.uio.no [129.240.130.16]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Fi434045697 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 08:44:04 -0700 (PDT) (envelope-from kjetilho@ifi.uio.no)
Received: from mail-mx6.uio.no ([129.240.10.47]) by pat.uio.no with esmtp (Exim 4.43) id 1DdVNw-0004M8-NP for ietf-mta-filters@imc.org; Wed, 01 Jun 2005 17:44:00 +0200
Received: from 80.80-202-166.nextgentel.com ([80.202.166.80] helo=chico.njus.no) by mail-mx6.uio.no with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43) id 1DdVNr-0001Bk-V8 for ietf-mta-filters@imc.org; Wed, 01 Jun 2005 17:43:56 +0200
Subject: security review of variables
From: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
To: ietf-mta-filters@imc.org
Content-Type: text/plain; charset=ISO-8859-1
Date: Wed, 01 Jun 2005 17:43:50 +0200
Message-Id: <1117640630.5871.182.camel@chico.njus.no>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1 
X-UiO-Spam-info: not spam, SpamAssassin (score=-3.15, required 12, autolearn=disabled, AWL 1.80, FORGED_RCVD_HELO 0.05, UIO_MAIL_IS_INTERNAL -5.00)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id j51Fi434045699
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

this is an attempt to summarise the feedback received from security
reviews by Love Hörnquist Åstrand, Sam Hartman and Jeffrey Hutzelman,
and with input from Alexey Melnikov.

the main (only) issue was the behaviour of length limits.

        how does modifiers to SET interact with length limits?  current
        modifiers can't increase length.

        variables which exceed implementation limits are silently
        truncated when stored.  there is no way for a script to discover
        implementation limits and take appropriate action.  among the
        reviewers, there was consensus that at a minimum the security
        aspects of this behaviour needs to be documented.  an
        alternative suggestion was to establish a namespace where such
        implementation values can be looked up.
        
        there were worries that other extensions would want some other
        failure mode than "silent truncation" when such limits are
        reached.  I'd like to comment that the limit only concerns
        storing a value, ie. is restricted to the action SET and the
        implicit storage of match variables from tests.  Sieve currently
        has no specified limit to the static length of string or
        multi-line, and it's unclear to me whether a conformant
        implementation is allowed to impose such limits.

non-security objections:

        Love Åstrand thinks restricting variable names to the English
        alphabet is a real problem.

        Jeffrey Hutzelman thinks a mechanism for quoting characters with
        special meaning in regex should be available.  this could be a
        modifier for SET, e.g. :quoteregex.

        Jeffrey Hutzelman thinks the text regarding interaction with
        regex should be in whichever of variables or regex is published
        last, so that what is a normative reference isn't mislabeled as
        informative.
-- 
Kjetil T.




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51FMY9D043992; Wed, 1 Jun 2005 08:22:34 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j51FMYpB043991; Wed, 1 Jun 2005 08:22:34 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51FMXqt043980 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 08:22:33 -0700 (PDT) (envelope-from ned.freed@mrochek.com)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01LOX713ZY4G00004T@mauve.mrochek.com> for ietf-mta-filters@imc.org; Wed, 01 Jun 2005 08:22:18 -0700 (PDT)
Cc: ietf-mta-filters@imc.org
To: Barry Leiba <leiba@watson.ibm.com>
Message-id: <01LOXUUZ95Q000004T@mauve.mrochek.com>
Date: Wed, 01 Jun 2005 08:22:01 -0700 (PDT)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: NULL vs. ""
In-reply-to: "Your message dated Wed, 01 Jun 2005 10:53:50 -0400" <429DCBFE.1070109@watson.ibm.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
References: <NcEFWJGHPJM0mZugUqKvAQ.md5@prosecco.oryx.com> <c6QMvtcfjfUz7EgQAVGVLg.md5@prosecco.oryx.com> <1117193398.14545.12.camel@chico.njus.no> <+z3UjvPElTb9bVSsE4a/7w.md5@prosecco.oryx.com> <1117202740.14545.31.camel@chico.njus.no> <S90Lex7fK8hck6fBazNaXg.md5@prosecco.oryx.com> <42977CB9.1040506@psaux.com> <008201c5651b$ef375370$662c2a0a@rockliffe.com> <01LOV4LVX27U00004T@mauve.mrochek.com> <1117472147.5871.15.camel@chico.njus.no> <429DCBFE.1070109@watson.ibm.com>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> > On Mon, 2005-05-30 at 09:21 -0700, Ned Freed wrote:
> >>>if anyof (header :is "Cc" "", not exists "Cc")
> >>
> >>This is actually clearer to read IMO, and is probably how I would code it if
> >>I ever wanted such a test.

> Indeed.  And so why don't we wrap up this too-long discussion this way?:
> 1. *Document* that string comparisons against headers MUST NOT match
> absent headers.
> 2. *Document* that the preferred way to test for a header that is either
> empty or absent is as Ned wrote above.
> 3. Move on.

+1.

				Ned



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Es2Lr041709; Wed, 1 Jun 2005 07:54:02 -0700 (PDT) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j51Es2KV041708; Wed, 1 Jun 2005 07:54:02 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from igw2.watson.ibm.com (igw2.watson.ibm.com [129.34.20.6]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j51Es1g1041697 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 07:54:01 -0700 (PDT) (envelope-from leiba@watson.ibm.com)
Received: from sp1n294en1.watson.ibm.com (sp1n294en1.watson.ibm.com [129.34.20.40]) by igw2.watson.ibm.com (8.13.1/8.13.1/8.13.1-2005-04-25 igw) with ESMTP id j51EtDoX012006 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:55:13 -0400
Received: from sp1n294en1.watson.ibm.com (localhost [127.0.0.1]) by sp1n294en1.watson.ibm.com (8.11.7-20030924/8.11.7/01-14-2004_2) with ESMTP id j51Ertk92460 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:53:55 -0400
Received: from mars (mars.watson.ibm.com [9.2.40.64]) by sp1n294en1.watson.ibm.com (8.11.7-20030924/8.11.7/01-14-2004_1) with ESMTP id j51Ersd98230 for <ietf-mta-filters@imc.org>; Wed, 1 Jun 2005 10:53:54 -0400
Received: from saturn ([9.2.43.75]) by mars.watson.ibm.com ID IMFd1117637630.486; Wed, 01 Jun 2005 10:53:50 -0400
Message-ID: <429DCBFE.1070109@watson.ibm.com>
Date: Wed, 01 Jun 2005 10:53:50 -0400
From: Barry Leiba <leiba@watson.ibm.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ietf-mta-filters@imc.org
Subject: Re: NULL vs. ""
References: <NcEFWJGHPJM0mZugUqKvAQ.md5@prosecco.oryx.com>	 <c6QMvtcfjfUz7EgQAVGVLg.md5@prosecco.oryx.com>	 <1117193398.14545.12.camel@chico.njus.no>	 <+z3UjvPElTb9bVSsE4a/7w.md5@prosecco.oryx.com>	 <1117202740.14545.31.camel@chico.njus.no>	 <S90Lex7fK8hck6fBazNaXg.md5@prosecco.oryx.com> <42977CB9.1040506@psaux.com>	 <008201c5651b$ef375370$662c2a0a@rockliffe.com>	 <01LOV4LVX27U00004T@mauve.mrochek.com> <1117472147.5871.15.camel@chico.njus.no>
In-Reply-To: <1117472147.5871.15.camel@chico.njus.no>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> On Mon, 2005-05-30 at 09:21 -0700, Ned Freed wrote:
>>>if anyof (header :is "Cc" "", not exists "Cc")
>>
>>This is actually clearer to read IMO, and is probably how I would code it if
>>I ever wanted such a test.

Indeed.  And so why don't we wrap up this too-long discussion this way?:
1. *Document* that string comparisons against headers MUST NOT match 
absent headers.
2. *Document* that the preferred way to test for a header that is either 
empty or absent is as Ned wrote above.
3. Move on.

Barry

--
Barry Leiba, Pervasive Computing Technology  (leiba@watson.ibm.com)
http://www.research.ibm.com/people/l/leiba
http://www.research.ibm.com/spam


