Re: Updated Sieve notification draft

Ned Freed <ned.freed@mrochek.com> Fri, 30 September 2005 15:15 UTC

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 j8UFFYq3090004; Fri, 30 Sep 2005 08:15: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 j8UFFYY7090003; Fri, 30 Sep 2005 08:15: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 j8UFFVUi089985 for <ietf-mta-filters@imc.org>; Fri, 30 Sep 2005 08:15:32 -0700 (PDT) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01LTMVUI3FMO0095C1@mauve.mrochek.com> (original mail from ned.freed@mrochek.com) for ietf-mta-filters@imc.org; Fri, 30 Sep 2005 08:14:51 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=nowsp; d=mrochek.com; s=mauve; t=1128093290; h=Date: From:Subject:MIME-version:Content-type; b=dJjH95RuyT8ILR7wkeEZr1nnc bsJBqybL7xElE2UHRJKrBIdEM6PnT85dtej0l4ac0voypdvagxzHmoKwH7Vuw==
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01LTM042EOGW000092@mauve.mrochek.com>; Fri, 30 Sep 2005 08:14:48 -0700 (PDT)
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, MTA filtering mailing list <ietf-mta-filters@imc.org>
To: Mark E Mallett <mem@mv.mv.com>
Message-id: <01LTMVUHD7WU000092@mauve.mrochek.com>
Date: Fri, 30 Sep 2005 08:05:05 -0700
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: Updated Sieve notification draft
In-reply-to: "Your message dated Thu, 29 Sep 2005 18:39:53 -0400" <20050929223953.GE51878@osmium.mv.net>
MIME-version: 1.0
Content-type: TEXT/PLAIN
References: <43380526.4070001@isode.com> <20050929223953.GE51878@osmium.mv.net>
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, Sep 26, 2005 at 03:26:46PM +0100, Alexey Melnikov wrote:
> > Hi folks,
> > I took a stab at updating draft-martin-sieve-notify-01.txt, which should
> > be published soon as draft-ietf-sieve-notify-00.txt. The document is
> > attached.

> Hi-

> On my first read through, I had the idea that it was defining an action
> "notify" that would itself generate a notification, deferred until the
> end of the script's execution (otherwise the "denotify" made no sense).

That's exactly what the extension does, or at least should do.

> After reading this thread and having another go or two at the document,
> I now get the idea that "notify" merely enables notifications to be sent
> when *other* actions are taken.

I cannot believe this was the intent, but it is it needs to be changed ASAP.
There is absolutely no reason to make notify actions have special and
unusual dependencies on other actions. This sort of thing would add all
sorts of strange interaction semantics to the sieve language that it doesn't
need and which will make our job of describing action behavior moving
forward vastly more difficult. It will also make it harder to write
scripts that function properly, debug scripts, and just about everything
else.

>  If that's the correct reading of the
> draft, then I think it needs to be made clearer that the "notify" verb
> merely enables notifications, and the notifications are triggered by
> other actions.  I'm still not sure I have interpreted it correctly.

I hope not.

> Also it's not clear if a single notification (one per :id, presumably)
> is sent that summarizes all actions that have been taken, or if one
> notification must be sent per action (per :id).

Notifications should contains what the action says they should contain.
Automatic addition of information about other actions is IMO entirely
inappropriate, and even if was appropriate I don't see how it could be done
usefully. (Tnink about the internationalization issues.)

> Nor is it clear (to me)
> whether "denotify" cancels any queued-up notifications, or whether it
> merely disarms the trigger (and queued-up notifications as a result of
> already-executed actions are still sent).  And what happens if you've
> executed two "notify" statements with different ":id"s -- does each
> subsequent action then get two notifications?  That seems reasonable but
> probably should be stated.

My personal view is that denotify should be yanked from the specification. I
see no more reason for it than I see for having defileinto or deredirect. (The
last one has an especially nice name, doesn't it?) 

However, if there is a consensus to retain denotify (it isn't all that
difficult to implement, just silly), it should be able to cancel either a
specific pending notification (by id), a group of notifications (by id list) or
all notifications.

				Ned