Re: [apps-discuss] Review of draft-ietf-appsawg-sieve-duplicate

Ned Freed <ned.freed@mrochek.com> Fri, 24 January 2014 21:35 UTC

Return-Path: <ned.freed@mrochek.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0E37E1A013C for <apps-discuss@ietfa.amsl.com>; Fri, 24 Jan 2014 13:35:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.437
X-Spam-Level:
X-Spam-Status: No, score=-2.437 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.535, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ZIc0oJXypIW for <apps-discuss@ietfa.amsl.com>; Fri, 24 Jan 2014 13:35:14 -0800 (PST)
Received: from mauve.mrochek.com (mauve.mrochek.com [66.59.230.40]) by ietfa.amsl.com (Postfix) with ESMTP id 1A8BA1A00DE for <apps-discuss@ietf.org>; Fri, 24 Jan 2014 13:35:14 -0800 (PST)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01P3J87K8SR4003K9M@mauve.mrochek.com> for apps-discuss@ietf.org; Fri, 24 Jan 2014 13:30:05 -0800 (PST)
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET="iso-8859-1"
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01P2SI6PLQJK0000AS@mauve.mrochek.com>; Fri, 24 Jan 2014 13:29:59 -0800 (PST)
Message-id: <01P3J87H8OWC0000AS@mauve.mrochek.com>
Date: Fri, 24 Jan 2014 11:35:34 -0800
From: Ned Freed <ned.freed@mrochek.com>
In-reply-to: "Your message dated Fri, 24 Jan 2014 17:52:09 +0000" <06b901cf192d$35a0ff40$4001a8c0@gateway.2wire.net>
References: <52D3A2C8.5030807@rename-it.nl> <01P33JH6T0LO0000AS@mauve.mrochek.com> <CAL0qLwY+pejVBVOmz_PMRF_0ORaNVrOmzB4_SVYVnw+dtC0QQA@mail.gmail.com> <20140114085709.GA21460@gulbrandsen.priv.no> <52D50F3A.8040206@rename-it.nl> <026d01cf16ce$bb20d980$4001a8c0@gateway.2wire.net> <52DEB827.9090606@rename-it.nl> <06b901cf192d$35a0ff40$4001a8c0@gateway.2wire.net>
To: "t.petch" <ietfc@btconnect.com>
Cc: Stephan Bosch <stephan@rename-it.nl>, apps-discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Review of draft-ietf-appsawg-sieve-duplicate
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss/>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Jan 2014 21:35:16 -0000

> Stephan

> Thanks for that - you have addressed the points I had in mind.

> A separate question, hence the top post.  If this function is used by
> sieve script X which is included in both sieve scripts A and B, is there
> an internal duplicate tracking list for X; or two, one for A.X and
> one for B.X; or ... ?

In the case of the include extension, there's only one. This is covered
explicitly in the draft:

   The "duplicate" test MUST only check for duplicates amongst message
   ID values encountered in previous executions of the Sieve script; it
   MUST NOT consider ID values encountered earlier in the current Sieve
   script execution as potential duplicates.  This means that all
   "duplicate" tests in a Sieve script execution, including those
   located in scripts included using the "include" [INCLUDE] extension,
   MUST always yield the same result if the arguments are identical.

Note the last sentence.

If you want your included scripts to operate in a different namespace, that's
what :handle is for.

More generally, this all gets very complex in a multiple sieve-per-message
environment. There's a correct answer, one that has been arrived at
independently by multiple implementors, but since such environments are outside
our current standards, I see no reason to worry about them here.

				Ned