Re: Sieve mime loop issues list

Ned Freed <ned.freed@mrochek.com> Fri, 24 March 2006 00:17 UTC

Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k2O0HKEM019707; Thu, 23 Mar 2006 17:17:20 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k2O0HKWx019706; Thu, 23 Mar 2006 17:17:20 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from mauve.mrochek.com (206.117.180.234.brandx.net [206.117.180.234] (may be forged)) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k2O0HJdE019700 for <ietf-mta-filters@imc.org>; Thu, 23 Mar 2006 17:17:19 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01M0EDKVHIIO000078@mauve.mrochek.com> for ietf-mta-filters@imc.org; Thu, 23 Mar 2006 16:17:17 -0800 (PST)
Cc: IETF MTA Filters List <ietf-mta-filters@imc.org>
To: Tony Hansen <tony@att.com>
Message-id: <01M0EFER83N6000078@mauve.mrochek.com>
Date: Thu, 23 Mar 2006 15:30:29 -0800
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: Sieve mime loop issues list
In-reply-to: "Your message dated Thu, 23 Mar 2006 16:59:59 -0500" <44231A5F.6050605@att.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset="ISO-8859-1"
References: <44231A5F.6050605@att.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>

> Here is the list of issues with the MIME LOOP draft that need to be
> worked on, as discussed at the Sieve meeting this week.

> #1: Need to deal with nested for_every_part loops. What will this do:
>     for_every_part { if (some test here) { for_every_part { ... } } }

My inclination is to ban them, or at least allow an implementation-defined
limit which can be set to 1. (Actually, such a limit is allowed implicitly for
almost anything in sieve by the base spec.)

> #2: Need to decide if there would be a "mime" shorthand for testing the
> type/subtype, without requiring

>     if allof (mime :type "multipart", mime :subtype "alternative") ?

How about getting rid of :subtype and making :type check the whole thing? A
subtype is only meaningful in the context of a particular type; the only
exception to this are suffix tags, and checking those would require :matches
anyway. That is, there's no practical difference between

    if mime :subtype :matches "*+xml" ...

and

    if mime :type : matches "*+xml" ...

And :matches can easily be used to check the primary type by itself. I see no
strong reason to prefer

    if mime :type "text" ...

over

    if mime :type :matches "text/*" ...

> #3: We need to add some way to look at parameter lists:
>     Content-Type: text/plain; charset="foo"

Agreed, but mostly because of RFC 2231.

> The following issues/comments were raised at the meeting:
>     interactions with variables
>     notifications
>     notifications to calendar service
>     address tests, exists tests
>     add tests mimeheader, mimeparameter

I'll repeat that I have no real preference between

    header :mime
    exists :mime
    address :mime

and

   mimeheader
   mimeexists
   mimeaddress

but I do want to see some way to do address and exists tests on inner
headers. This is actually quite a bit more important than a parameter
test IMO.

				Ned