Re: Comments on draft-melnikov-sieve-external-lists-02.txt

Robert Burrell Donkin <robertburrelldonkin@gmail.com> Thu, 23 July 2009 21:57 UTC

Return-Path: <owner-ietf-mta-filters@mail.imc.org>
X-Original-To: ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com
Delivered-To: ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 57B9F28C141 for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Thu, 23 Jul 2009 14:57:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qV16fyubBd4S for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Thu, 23 Jul 2009 14:57:14 -0700 (PDT)
Received: from balder-227.proper.com (properopus-pt.tunnel.tserv3.fmt2.ipv6.he.net [IPv6:2001:470:1f04:392::2]) by core3.amsl.com (Postfix) with ESMTP id F277528C126 for <sieve-archive-Aet6aiqu@ietf.org>; Thu, 23 Jul 2009 14:57:13 -0700 (PDT)
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id n6NLn34e032769 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Jul 2009 14:49:03 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.14.2/8.13.5/Submit) id n6NLn3lM032768; Thu, 23 Jul 2009 14:49:03 -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 mail-fx0-f208.google.com (mail-fx0-f208.google.com [209.85.220.208]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id n6NLmp3j032749 for <ietf-mta-filters@imc.org>; Thu, 23 Jul 2009 14:49:02 -0700 (MST) (envelope-from robertburrelldonkin@gmail.com)
Received: by fxm4 with SMTP id 4so1147327fxm.10 for <ietf-mta-filters@imc.org>; Thu, 23 Jul 2009 14:48:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HZzwNSvV4YllO2sayYlTeu7VsM/IJDWVmqpkVixsc0w=; b=cuWO6oVMkl8Rg874Snt9okl5q9AktjCFsVpZGZuWmXMq7LT20EnA+f0wVcedIoL4aO JLvXofXH9iwrOpP5QwZx/F1H4yGGQimOi6uZRFgJ1GQzjzt+rz5bXo7peOpmHzqOu7CT wrOHbm8g2G00/hInpQx/sN3NXz16Xh9JiTxAI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pSUlockzkxZ5oKPRuainQTwcwxydvaD5Zb8/Aiw4Xl/rf9zS/ogaTwF3waL3doh9bL JAGpDyh2jUthRIf+M1yvXT06fVkn+F3GbbNNLPICF+wbKqEcjRStVoIcpdKA4U6BNuaU n7olot72uEOrZEF/DBCGiPsaFifBkoDqrDf6k=
MIME-Version: 1.0
Received: by 10.204.115.67 with SMTP id h3mr2439277bkq.173.1248385730663; Thu, 23 Jul 2009 14:48:50 -0700 (PDT)
In-Reply-To: <01NBII89YRHO00007A@mauve.mrochek.com>
References: <371C2EEC-8CBD-4AC1-B07A-928352E19DCB@pobox.com> <F4A90756-9251-4CB8-9776-77F3202617A5@pobox.com> <01NB1TV04NJS001ML6@mauve.mrochek.com> <4A54701C.6080107@isode.com> <01NB2RB8UTA4001ML6@mauve.mrochek.com> <4A636837.7010105@isode.com> <01NBI4IUBYSY00007A@mauve.mrochek.com> <4A63732F.4030307@isode.com> <4A6376F9.5020509@aegee.org> <01NBII89YRHO00007A@mauve.mrochek.com>
Date: Thu, 23 Jul 2009 22:48:50 +0100
Message-ID: <f470f68e0907231448n764a85deo9b490cbf26e13008@mail.gmail.com>
Subject: Re: Comments on draft-melnikov-sieve-external-lists-02.txt
From: Robert Burrell Donkin <robertburrelldonkin@gmail.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: Дилян Палаузов <dilyan.palauzov@aegee.org>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-mta-filters@imc.org
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
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>

2009/7/20 Ned Freed <ned.freed@mrochek.com>:
>
>
>> Hello,
>
>> > Would we need to have :list-is, :list-matches, :list-contains, or can we
>> > get away with just :list, which would check for the exact match?
>
>> As far as I understood Ned, it is the list who decides on the exact
>> match type : it is not up to the script to prescribe the matching. So
>> "just :list".
>
>> Any use cases where :list-is, :list-contains ... make sense and "just
>> :list" would be insufficient?
>
> Sure, you can have lists that support more than one kind of matching,
> although
> I expect such cases to be the exception rather than the rule. In such cases
> I
> would propose that the type of matching be embedded in the list name
> somehow.
>
> This then gets to the idea of using URLs for list names. A tag: URL is of
> course completely capable of handling additional embedded material. Other
> URL schemes, not so much. In fact I'm not entirely sure how this is supposed
> to
> work with LDAP URLs with reasonable efficiency.
>
> Consider the fairly typical case of whitelisting based on a personal address
> book in LDAP. Assuming everyone is OK with users being able to construct
> and perform their own LDAP searches and have no problem knowing and hard
> coding
> the base DN of their entries (both very big ifs), this would call for
> something
> like:
>
>  if address :list "from"
>     "ldap:///cn=me,o=pab?mail?sub?(objectclass=regularentry)" {
>     ... whitelist ...
>  }
>
> The problem with this is we're again back to enumeration - that URL produces
> a (potentially very large) list of addresses, which would have to be
> compared
> one by one to the address(es) extracted from the "from" field.
>
> But consider the URL:
>
>  ldap:///cn=me,o=pab?mail?sub?(&(objectclass=regularentry)(mail=a@b))
>
> This flips the problem around - now the address you're looking for is
> specified
> in the URL itself. Now it's up to the LDAP server to find the match, and the
> simple fact it returned a response is enough to conclude the address is on
> the
> list.
>
> This is much more efficient, especially if the LDAP server has proper
> indexing.
> But now the URL is something that has to be constructed by knowing what
> you're
> searching for.
>
> I will also note that LDAP URLs can embed very complex matching criteria of
> their own.
>
> Now, I guess I have no problem with using tag: URLs that end up getting
> converted to the more efficient LDAP URLs seen here. But I really have to
> question whether anyone is actually going to allow, as the specification
> implies, the direct use of LDAP URLs or other URLs with similar
> characteristics.

+1

the Sieve engine will face problems of semantics, resolution and
authentication with direct URLs

- robert