From owner-ietf-mta-filters Sun May  5 04:12:08 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g45BC8S12638
	for ietf-mta-filters-bks; Sun, 5 May 2002 04:12:08 -0700 (PDT)
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g45BC5L12634
	for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 04:12:06 -0700 (PDT)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178])
	(authenticated bits=0)
	by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g45BBiQ4032044;
	Sun, 5 May 2002 13:11:53 +0200
To: tmartin@mirapoint.com
Cc: ietf-mta-filters@imc.org
Subject: Managesieve
From: Simon Josefsson <simon+ietf-mta-filters@josefsson.org>
Date: Sun, 05 May 2002 13:11:35 +0200
Message-ID: <iluit627st4.fsf@extundo.com>
Lines: 199
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Economic Science,
 i686-pc-linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
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>


Any progress on the managesieve spec?  It seems to have expired from
the I-D repository.  I still think it is a good idea to have it
published.

Some comments:

+ Supporting both quoted and literal strings in all places makes it
  more difficult to implement the protocol without much gain.  The
  AUTHENTICATE "strings" must be base64 so quoted strings are
  sufficient.  The PUTSCRIPT and GETSCRIPT strings are probably only
  literals in practice.  Quoted strings are sufficient for SASL names.
  The only problematic one was the response-oknobye for PUTSCRIPT
  where it can contains multiline errors. In practice I think a long
  error doesn't make much sense, so I restricted it to just a quoted
  string.

+ It is not clear if the protocol is called "managesieve" or "sieve".
  I don't see much confusion arising from using "sieve" (which is used
  for the SASL service and /etc/service entry already), so I suggest
  this for brevity ("managesieve" looks ugly).

+ There is no URL syntax for a managesieve resource.

Patch:

--- draft-martin-managesieve-03.txt.orig	Sun May  5 12:28:48 2002
+++ draft-martin-managesieve-03.txt	Sun May  5 13:07:40 2002
@@ -36,9 +36,9 @@
 Abstract
 
     Sieve scripts allow users to filter incoming email. Message stores
-    are commonly sealed servers so users cannot log into them , yet
+    are commonly sealed servers so users cannot log into them, yet
     users must be able to update their scripts on them.  This document
-    describes a protocol for securely managing Sieve scripts on a remote
+    describes a protocol "sieve" for securely managing Sieve scripts on a remote
     server.  This protocol allows a user to have multiple scripts, and
     also alerts a user to syntactically flawed scripts.
 
@@ -103,7 +103,7 @@
 
 8.     Author's Address  . . . . . . . . . . . . . . . . . . . . . .  18
 
-
+A.     URL Scheme  . . . . . . . . . . . . . . . . . . . . . . . . .  19
 
 
 
@@ -193,9 +193,9 @@
 
 1.3.  Syntax
 
-    This a line oriented protocol much like [IMAP] or [ACAP]. There are
-    three types: ATOMS, numbers and strings. Strings may be quoted or
-    literal. See [ACAP] for detailed descriptions of these types.
+    This a line oriented protocol much like [IMAP] or [ACAP]. There
+    are four types: ATOMS, numbers and quoed strings and literal
+    strings. See [ACAP] for detailed descriptions of these types.
 
     Each command consists of an atom followed by zero or more strings
     and numbers terminated by a newline.
@@ -634,9 +634,7 @@
     readable and SHOULD contain a specific error message giving line
     number of the first error. Implementors should strive to produce
     helpful error messages similar to those given by programming
-    language compilers. Client implementations should note that this may
-    be a multiline literal string with more than one error message
-    separated by newlines.
+    language compilers.
 
     Example:
 
@@ -807,7 +805,7 @@
                             command-putscript / command-capability / command-havespace /
                             command-starttls
 
-    command-authenticate  = "AUTHENTICATE" SP auth-type [SP string]  *(CRLF string)
+    command-authenticate  = "AUTHENTICATE" SP auth-type [SP quoted]  *(CRLF quoted)
 
     command-capability    = "CAPABILITY" CRLF
 
@@ -821,7 +819,7 @@
 
     command-logout        = "LOGOUT" CRLF
 
-    command-putscript     = "PUTSCRIPT" SP sieve-name SP string CRLF
+    command-putscript     = "PUTSCRIPT" SP sieve-name SP literal CRLF
 
     command-setactive     = "SETACTIVE" SP sieve-name CRLF
 
@@ -850,7 +848,7 @@
                             "TRANSITION-NEEDED" / "TRYLATER" /
                             resp-code-ext
 
-    resp-code-sasl        = "SASL" SP string
+    resp-code-sasl        = "SASL" SP quoted
 
     resp-code-ext         = iana-token [SP extension-data]
                             ;; unknown codes MUST be tolerated by the client
@@ -860,13 +858,13 @@
                             response-putscript / response-capability / response-havespace /
                             response-starttls
 
-    response-authenticate = *(string CRLF) (response-oknobye)
+    response-authenticate = *(quoted CRLF) (response-oknobye)
 
-    response-capability   = *(string [SP string] CRLF) response-oknobye
+    response-capability   = *(quoted [SP quoted] CRLF) response-oknobye
 
     response-deletescript = response-oknobye
 
-    response-getscript    = [string CRLF] response-oknobye
+    response-getscript    = [literal CRLF] response-oknobye
 
     response-havespace    = response-oknobye
 
@@ -875,7 +873,7 @@
 
     response-logout       = response-oknobye
 
-    response-oknobye      = ("OK" / "NO" / "BYE") [SP "(" resp-code ")"] [SP string] CRLF
+    response-oknobye      = ("OK" / "NO" / "BYE") [SP "(" resp-code ")"] [SP quoted] CRLF
 
     response-putscript    = response-oknobye
 
@@ -883,9 +881,9 @@
 
     response-starttls     = response-oknobye
 
-    sieve-name            = string
+    sieve-name            = quoted
+
 
-    string                = quoted / literal
 
 
 
@@ -1010,3 +1008,61 @@
 
 Expires November 6, 2001        Martin                         [Page 18]
 
+Internet Draft           Managing Sieve Scripts              May 1, 2001
+
+
+A.  URL Scheme
+
+      URL scheme name: "sieve"
+
+      URL scheme syntax:
+
+      Described using ABNF [RFC 2234] and ABNF entities from RFC 2396.
+
+      sieveurl = "sieve://" [ hostport ] "/" scriptname
+
+      scriptname = *pchar
+
+      Character encoding considerations: The script name, if present,
+      is in UTF-8.  Non-ASCII characters must be escaped as described
+      in RFC 2396.
+
+      Intended usage: A sieve URL identifies a sieve server or a sieve
+      script on a sieve server.  The latter always have the
+      application/sieve MIME type.
+
+      Applications and/or protocols which use this URL scheme name:
+      The protocol is described in this document.
+
+      Interoperability considerations.  None.
+
+      Security considerations:  None.
+
+      Relevant publications:  This document and RFC 3028.
+
+      Person & email address to contact for further information:
+      Author of this document.
+
+      Author/Change controller:  Author of this document.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Expires November 6, 2001        Martin                         [Page 19]
+


From owner-ietf-mta-filters Sun May  5 05:21:33 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g45CLXM13954
	for ietf-mta-filters-bks; Sun, 5 May 2002 05:21:33 -0700 (PDT)
Received: from c000.snv.cp.net (h001.c000.snv.cp.net [209.228.32.65])
	by above.proper.com (8.11.6/8.11.3) with SMTP id g45CLWL13949
	for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 05:21:32 -0700 (PDT)
Received: (cpmta 6170 invoked from network); 5 May 2002 05:21:27 -0700
Received: from 129.70.36.4 (HELO dirichlet.mathematik.uni-bielefeld.de)
  by smtp.mutz.com (209.228.32.65) with SMTP; 5 May 2002 05:21:27 -0700
X-Sent: 5 May 2002 12:21:27 GMT
From: Marc Mutz <mutz@kde.org>
Organization: KDE
To: Simon Josefsson <simon+ietf-mta-filters@josefsson.org>,
   tmartin@mirapoint.com
Subject: Re: Managesieve
Date: Sun, 5 May 2002 14:20:43 +0200
User-Agent: KMail/1.4.5
Cc: ietf-mta-filters@imc.org
References: <iluit627st4.fsf@extundo.com>
In-Reply-To: <iluit627st4.fsf@extundo.com>
X-PGP-Key: 0xBDBFE838
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 8bit
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200205051420.45400@sendmail.mutz.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>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 05 May 2002 13:11, Simon Josefsson wrote:
<snip>
> +      sieveurl = "sieve://" [ hostport ] "/" scriptname
<snip>

s/hostport/server/

Do we need a way to activate a script via URLs? Like 
sieve://user@host/myscript1.siv?activate=1
?

Marc

- -- 
Marc Mutz <mutz@kde.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE81SOc3oWD+L2/6DgRAidKAKCkfZXyO+ppwkKT4g16AcfEElp9zACffMBP
HNbzAi+ALMPIkjUOW+3p+U0=
=E1Hm
-----END PGP SIGNATURE-----


From owner-ietf-mta-filters Sun May  5 09:28:11 2002
Received: by above.proper.com (8.11.6/8.11.3) id g45GSBS21252
	for ietf-mta-filters-bks; Sun, 5 May 2002 09:28:11 -0700 (PDT)
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g45GS8L21247
	for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 09:28:08 -0700 (PDT)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178])
	(authenticated bits=0)
	by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g45GS1Q4001225
	for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 18:28:08 +0200
To: ietf-mta-filters@imc.org
Subject: Re: Managesieve
References: <iluit627st4.fsf@extundo.com>
	<200205051420.45400@sendmail.mutz.com>
From: Simon Josefsson <simon+ietf-mta-filters@josefsson.org>
In-Reply-To: <200205051420.45400@sendmail.mutz.com> (Marc Mutz's message of
 "Sun, 5 May 2002 14:20:43 +0200")
Date: Sun, 05 May 2002 18:27:50 +0200
Message-ID: <iluoffuh855.fsf@extundo.com>
Lines: 39
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
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>


[Resending to list with correct From: header]

Marc, thanks for your comments.  Comments inline.

Marc Mutz <mutz@kde.org> writes:

> On Sunday 05 May 2002 13:11, Simon Josefsson wrote:
> <snip>
>> +      sieveurl = "sieve://" [ hostport ] "/" scriptname
> <snip>
>
> s/hostport/server/

Use of server (to get username/password) is NOT RECOMMENDED according
to RFC 2396 and I kind of agree with their rationale.  But I'm sure
this issue come up with almost every URL syntax, so perhaps the "best
practices" for this has changed since 2396.  Any W3C/URI gurus here?
I don't care much either way, only that we should not go against
established procedures.

(Who came up with "NOT RECOMMENDED"?  I wish they had read RFC2119.)

> Do we need a way to activate a script via URLs? Like 
> sieve://user@host/myscript1.siv?activate=1
> ?

Personally I dislike this abuse of URLs.  URLs should point to network
resources, not embed actions.  I know the history is full of bad
examples when it comes to these things; pop URL etc, but perhaps
that's not a good enough reason to perpetuate it.  Embedding username
and passwords is also an example of this abuse, and it is a
particulary bad one since it is not generic over all authentication
mechanisms (no way of expressing similar things for STARTTLS, GSSAPI
etc authentication), so in the end username/passwords gets used just
because it is easier to use it than other mechanisms, which has
security implications.

But again, I don't care much either way and if people think it is OK
then let's change it.


From owner-ietf-mta-filters Mon May 13 11:58:48 2002
Received: by above.proper.com (8.11.6/8.11.3) id g4DIwm322569
	for ietf-mta-filters-bks; Mon, 13 May 2002 11:58:48 -0700 (PDT)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DIwkL22565
	for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 11:58:47 -0700 (PDT)
Received: from oceana.com (KEN.oceana.com [192.168.10.26])
	by eagle.oceana.com (8.12.3-SASLv2.Beta4/8.12.3) with ESMTP id g4DIwSkP019804;
	Mon, 13 May 2002 14:58:28 -0400
Message-ID: <3CE00D20.344FA693@oceana.com>
Date: Mon, 13 May 2002 14:59:44 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Wolfgang Segmuller <whs@watson.ibm.com>
CC: ietf-mta-filters@imc.org
Subject: draft-segmuller-sieve-relation-01.txt
Content-Type: text/plain; charset=us-ascii
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>


Wolfgang,

I'm currently implementing this extension in CMU-Sieve, and I have a
couple of questions:

1. Do you have a -02 draft with the changes previously discussed on the
list?

2. Why is the relational-match a quoted string instead of an unquoted
token, ie:

	if header :value lt "subject" "foo" ...

3. Is specifying a :comparator for a :count match required, or should we
assume "i;ascii-numeric" if not specified otherwise (although this
contradicts the base spec?  If so, should require "relational" then
imply require "i;ascii-numeric"?

Ken
-- 
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 Mon May 13 15:37:37 2002
Received: by above.proper.com (8.11.6/8.11.3) id g4DMbbs28447
	for ietf-mta-filters-bks; Mon, 13 May 2002 15:37:37 -0700 (PDT)
Received: from mail.mirapoint.com (IDENT:mirapoint@mail.mirapoint.com [63.107.133.18])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DMbZL28443
	for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 15:37:35 -0700 (PDT)
Received: from funhouse.mirapoint.com (funhouse.mirapoint.com [192.168.0.92])
	by mail.mirapoint.com (Mirapoint Messaging Server MOS 3.1.1.34)
	with ESMTP id ARI00597;
	Mon, 13 May 2002 15:37:25 -0700 (PDT)
Subject: Re: draft-segmuller-sieve-relation-01.txt
From: Tim Showalter <tjs@mirapoint.com>
To: Ken Murchison <ken@oceana.com>
Cc: ietf-mta-filters@imc.org
In-Reply-To: <3CE00D20.344FA693@oceana.com>
References: <3CE00D20.344FA693@oceana.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.3 
Date: 13 May 2002 16:37:30 -0600
Message-Id: <1021329451.208.36.camel@funhouse.mirapoint.com>
Mime-Version: 1.0
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>


> 2. Why is the relational-match a quoted string instead of an unquoted
> token, ie:
> 
> 	if header :value lt "subject" "foo" ...

I haven't read Wolfgang's document (recently, if at all), but this would
require an extension to the grammar in the base spec.

Tim



From owner-ietf-mta-filters Mon May 13 15:48:32 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g4DMmWH28690
	for ietf-mta-filters-bks; Mon, 13 May 2002 15:48:32 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DMmUL28685
	for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 15:48:31 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243)
 id <01KHOKEWRWWW000NL2@mauve.mrochek.com> for ietf-mta-filters@imc.org; Mon,
 13 May 2002 15:48:22 -0700 (PDT)
Date: Mon, 13 May 2002 15:48:07 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: draft-segmuller-sieve-relation-01.txt
In-reply-to: "Your message dated Mon, 13 May 2002 16:37:30 -0600"
 <1021329451.208.36.camel@funhouse.mirapoint.com>
To: Tim Showalter <tjs@mirapoint.com>
Cc: Ken Murchison <ken@oceana.com>, ietf-mta-filters@imc.org
Message-id: <01KHONHXML5A000NL2@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
References: <3CE00D20.344FA693@oceana.com>
 <1021329451.208.36.camel@funhouse.mirapoint.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>



> > 2. Why is the relational-match a quoted string instead of an unquoted
> > token, ie:
> >
> > 	if header :value lt "subject" "foo" ...

> I haven't read Wolfgang's document (recently, if at all), but this would
> require an extension to the grammar in the base spec.

Concur. As such, I think we need to retain the quotes.

				Ned


From owner-ietf-mta-filters Mon May 13 15:58:36 2002
Received: by above.proper.com (8.11.6/8.11.3) id g4DMwa828919
	for ietf-mta-filters-bks; Mon, 13 May 2002 15:58:36 -0700 (PDT)
Received: from mail.mirapoint.com (IDENT:mirapoint@mail.mirapoint.com [63.107.133.18])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DMwYL28914
	for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 15:58:34 -0700 (PDT)
Received: from funhouse.mirapoint.com (funhouse.mirapoint.com [192.168.0.92])
	by mail.mirapoint.com (Mirapoint Messaging Server MOS 3.1.1.34)
	with ESMTP id ARI00729;
	Mon, 13 May 2002 15:58:32 -0700 (PDT)
Subject: Re: draft-segmuller-sieve-relation-01.txt
From: Tim Showalter <tjs@mirapoint.com>
To: ned.freed@mrochek.com
Cc: ietf-mta-filters@imc.org
In-Reply-To: <01KHONHXML5A000NL2@mauve.mrochek.com>
References: <3CE00D20.344FA693@oceana.com>
	<1021329451.208.36.camel@funhouse.mirapoint.com> 
	<01KHONHXML5A000NL2@mauve.mrochek.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.3 
Date: 13 May 2002 16:58:38 -0600
Message-Id: <1021330718.208.41.camel@funhouse.mirapoint.com>
Mime-Version: 1.0
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, 2002-05-13 at 16:48, ned.freed@mrochek.com wrote:
> 
> > > 2. Why is the relational-match a quoted string instead of an unquoted
> > > token, ie:
> > >
> > > 	if header :value lt "subject" "foo" ...
> 
> > I haven't read Wolfgang's document (recently, if at all), but this would
> > require an extension to the grammar in the base spec.
> 
> Concur. As such, I think we need to retain the quotes.

Alternatively we could have a :lt tagged argument (or even :value :lt,
but I don't really like that, and there's a SHOULD NOT against it, I
think).

My apologies if this has been shot down already.

Tim




From owner-ietf-mta-filters Mon May 13 16:16:26 2002
Received: by above.proper.com (8.11.6/8.11.3) id g4DNGQZ29470
	for ietf-mta-filters-bks; Mon, 13 May 2002 16:16:26 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DNGOL29466
	for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 16:16:24 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243)
 id <01KHOKEWRWWW000NL2@mauve.mrochek.com> for ietf-mta-filters@imc.org; Mon,
 13 May 2002 16:16:26 -0700 (PDT)
Date: Mon, 13 May 2002 16:15:11 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: draft-segmuller-sieve-relation-01.txt
In-reply-to: "Your message dated Mon, 13 May 2002 16:58:38 -0600"
 <1021330718.208.41.camel@funhouse.mirapoint.com>
To: Tim Showalter <tjs@mirapoint.com>
Cc: ned.freed@mrochek.com, ietf-mta-filters@imc.org
Message-id: <01KHOOHPFNRU000NL2@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
References: <3CE00D20.344FA693@oceana.com>
 <1021329451.208.36.camel@funhouse.mirapoint.com>
 <01KHONHXML5A000NL2@mauve.mrochek.com>
 <1021330718.208.41.camel@funhouse.mirapoint.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, 2002-05-13 at 16:48, ned.freed@mrochek.com wrote:
> >
> > > > 2. Why is the relational-match a quoted string instead of an unquoted
> > > > token, ie:
> > > >
> > > > 	if header :value lt "subject" "foo" ...
> >
> > > I haven't read Wolfgang's document (recently, if at all), but this would
> > > require an extension to the grammar in the base spec.
> >
> > Concur. As such, I think we need to retain the quotes.

> Alternatively we could have a :lt tagged argument (or even :value :lt,
> but I don't really like that, and there's a SHOULD NOT against it, I
> think).

> My apologies if this has been shot down already.

I don't especially care as long as we don't change the underlying syntax.
OTOH, I see little difference between :value "lt" and :lt. Given that the
former is already in use, I'd suggest sticking to it.

				Ned



From owner-ietf-mta-filters Mon May 13 18:48:01 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g4E1m1H03362
	for ietf-mta-filters-bks; Mon, 13 May 2002 18:48:01 -0700 (PDT)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4E1lxL03357
	for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 18:47:59 -0700 (PDT)
Received: from oceana.com (ppp4.oceana.com [192.168.10.246])
	by eagle.oceana.com (8.12.3-SASLv2.Beta4/8.12.3) with ESMTP id g4E1lvkP025570;
	Mon, 13 May 2002 21:47:57 -0400
Message-ID: <3CE06D52.C5ED4328@oceana.com>
Date: Mon, 13 May 2002 21:50:10 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.79 [en] (Win98; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Tim Showalter <tjs@mirapoint.com>
CC: ietf-mta-filters@imc.org
Subject: Re: draft-segmuller-sieve-relation-01.txt
References: <3CE00D20.344FA693@oceana.com> <1021329451.208.36.camel@funhouse.mirapoint.com>
Content-Type: text/plain; charset=us-ascii
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>




Tim Showalter wrote:
> 
> > 2. Why is the relational-match a quoted string instead of an unquoted
> > token, ie:
> >
> >       if header :value lt "subject" "foo" ...
> 
> I haven't read Wolfgang's document (recently, if at all), but this would
> require an extension to the grammar in the base spec.

Yup.  My bad (should've assumed it was something obvious).

Tim, consider this your quarterly reminder to do something with vacation
;)

Ken
-- 
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 May 15 10:35:32 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g4FHZWI05047
	for ietf-mta-filters-bks; Wed, 15 May 2002 10:35:32 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4FHZUL05043
	for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 10:35:30 -0700 (PDT)
Received: from sp1n294en1.watson.ibm.com (sp1n294en1.watson.ibm.com [9.2.112.58])
	by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4FHZQO25362
	for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 13:35:26 -0400
Received: from birch (birch.watson.ibm.com [9.2.40.66])
	by sp1n294en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4FHZQr22464
	for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 13:35:26 -0400
Date: Wed, 15 May 2002 13:35:26 -0400
From: Wolfgang Segmuller <whs@watson.ibm.com>
To: ietf-mta-filters@imc.org
Subject: Re: draft-segmuller-sieve-relation-01.txt
Message-ID: <594621984.1021469726@birch>
X-Mailer: Mulberry/2.2.1 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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 just sent the -02 document to the drafts editor.

--On Monday, May 13, 2002 2:59 PM -0400 Ken Murchison <ken@oceana.com> 
wrote:

>
> 3. Is specifying a :comparator for a :count match required, or should we
> assume "i;ascii-numeric" if not specified otherwise (although this
> contradicts the base spec?  If so, should require "relational" then
> imply require "i;ascii-numeric"?
>

At the moment, it is not required, but since the default comparator is 
i;ascii-casemap it really must be specified.

I could see changing the default comparator to i;ascii-numeric if :count is 
specified.  This would modify the base specification which says that the 
default comparator is i;ascii-casemap.

It would be nice if require "relational" implies require "i;ascii-numeric", 
but I think that would be a tough sell since it would violate the base 
specification.  Also it is possible to create a sieve script that uses 
relational, but does not use i;ascii-numeric.

Wolfgang

From owner-ietf-mta-filters Wed May 15 11:02:15 2002
Received: by above.proper.com (8.11.6/8.11.3) id g4FI2FH05715
	for ietf-mta-filters-bks; Wed, 15 May 2002 11:02:15 -0700 (PDT)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4FI2EL05711
	for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 11:02:14 -0700 (PDT)
Received: from oceana.com (KEN.oceana.com [192.168.10.26])
	by eagle.oceana.com (8.12.3-SASLv2.Beta4/8.12.3) with ESMTP id g4FI2AkP010414
	for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 14:02:11 -0400
Message-ID: <3CE2A2F0.E0F97C57@oceana.com>
Date: Wed, 15 May 2002 14:03:28 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: ietf-mta-filters@imc.org
Subject: Re: draft-segmuller-sieve-relation-01.txt
References: <594621984.1021469726@birch>
Content-Type: text/plain; charset=us-ascii
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>




Wolfgang Segmuller wrote:
> 
> I've just sent the -02 document to the drafts editor.
> 
> --On Monday, May 13, 2002 2:59 PM -0400 Ken Murchison <ken@oceana.com>
> wrote:
> 
> >
> > 3. Is specifying a :comparator for a :count match required, or should we
> > assume "i;ascii-numeric" if not specified otherwise (although this
> > contradicts the base spec?  If so, should require "relational" then
> > imply require "i;ascii-numeric"?
> >
> 
> At the moment, it is not required, but since the default comparator is
> i;ascii-casemap it really must be specified.
> 
> I could see changing the default comparator to i;ascii-numeric if :count is
> specified.  This would modify the base specification which says that the
> default comparator is i;ascii-casemap.
> 
> It would be nice if require "relational" implies require "i;ascii-numeric",
> but I think that would be a tough sell since it would violate the base
> specification.  Also it is possible to create a sieve script that uses
> relational, but does not use i;ascii-numeric.

Agreed on all points.  Its probably best to just leave it as-is.

Ken
-- 
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 Fri May 17 22:34:27 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g4I5YRG29702
	for ietf-mta-filters-bks; Fri, 17 May 2002 22:34:27 -0700 (PDT)
Received: from web21108.mail.yahoo.com (web21108.mail.yahoo.com [216.136.227.110])
	by above.proper.com (8.11.6/8.11.3) with SMTP id g4I5YQL29698
	for <ietf-mta-filters@imc.org>; Fri, 17 May 2002 22:34:26 -0700 (PDT)
Message-ID: <20020518053430.57865.qmail@web21108.mail.yahoo.com>
Received: from [200.39.56.180] by web21108.mail.yahoo.com via HTTP; Sat, 18 May 2002 00:34:30 CDT
Date: Sat, 18 May 2002 00:34:30 -0500 (CDT)
From: =?iso-8859-1?q?Octavio=20Uribe?= <ouribemx@yahoo.com.mx>
Subject: filter attachments with sieve
To: ietf-mta-filters@imc.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
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>


hi, i am usind iplanet messaging server, i could to
filter email by subject and content but i dont know
the axactly form to use sieve script to filter an exe
file (file.txt) in an attachment, anybody know how to
do this?  which is the right sintax?

Thanks

Octavio

_________________________________________________________
Do You Yahoo!?
La emoción e intensidad del deporte en Yahoo! Deportes. http://deportes.yahoo.com.mx

From owner-ietf-mta-filters Sat May 18 05:13:31 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g4ICDV615884
	for ietf-mta-filters-bks; Sat, 18 May 2002 05:13:31 -0700 (PDT)
Received: from starship.enterprise.ucs.ed.ac.uk (starship.enterprise.ucs.ed.ac.uk [129.215.40.70])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4ICDOL15878
	for <ietf-mta-filters@imc.org>; Sat, 18 May 2002 05:13:29 -0700 (PDT)
Received: from nigelhome (pc-80-195-32-192-ed.blueyonder.co.uk [80.195.32.192]) by enterprise.ucs.ed.ac.uk
 (Rockliffe SMTPRA 5.2.3) with ESMTP id <B0000144234@starship.enterprise.ucs.ed.ac.uk> for <ietf-mta-filters@imc.org>;
 Sat, 18 May 2002 12:57:24 +0100
Message-ID: <002101c1fe63$67ecbcb0$c020c350@nigelhome>
From: "Nigel Swinson" <Nigel@Swinson.com>
To: <ietf-mta-filters@imc.org>
References: <20020518053430.57865.qmail@web21108.mail.yahoo.com>
Subject: Re: filter attachments with sieve
Date: Sat, 18 May 2002 12:59:03 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
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>


> hi, i am usind iplanet messaging server, i could to
> filter email by subject and content but i dont know
> the axactly form to use sieve script to filter an exe
> file (file.txt) in an attachment, anybody know how to
> do this?  which is the right sintax?

The base Sieve spec does not define any test for the body of a message.
Hence there is no way to test for attachments.  This is because allowing
searches in the body of a message dramatically increases the search space
making Sieve scripts much slower to execute.

However some implementations like www.Mailsite.com define an x_body
extension that allows you to search through the body for strings (and
regexes if you have the regex extension available).

The mailsite users have come to use the x_body extension quite heavily and
have ended up using tests like this:

 x_body :regex
"(^|;)(\\s*name=|begin\\s+\\d+\\s+)(\".+\\.|.+\\.)(bat|cmd|com|exe|hta|js|js
e|lnk|pif|scr|sct|shb|shs|vb|vbe|vbs|wsc|wsf|wsh|dll|ocx|msi)(\"|$|\\?=\"|\\
s+)"

Sadly they have also found that enabling such a test server-wide has
resulted in a substantial perfromance hit, which is I suppose why Sieve
didn't natively suggest an x_body extension.  This doesn't take away though
from how useful such a test can be though!!

I have no experience of iPlanets server so I can not speak for what it has
implemented.

Cheers,

Nigel



From owner-ietf-mta-filters Mon May 20 11:04:54 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g4KI4sU06166
	for ietf-mta-filters-bks; Mon, 20 May 2002 11:04:54 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4KI4rL06161
	for <ietf-mta-filters@imc.org>; Mon, 20 May 2002 11:04:53 -0700 (PDT)
Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57])
	by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4KI4nO11744
	for <ietf-mta-filters@imc.org>; Mon, 20 May 2002 14:04:49 -0400
Received: from ballybran.diz.watson.ibm.com (ballybran.watson.ibm.com [9.2.42.70])
	by sp1n293en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4KI4nk28196
	for <ietf-mta-filters@imc.org>; Mon, 20 May 2002 14:04:49 -0400
Date: Mon, 20 May 2002 14:04:49 -0400
From: Wolfgang Segmuller <whs@watson.ibm.com>
To: ietf-mta-filters@imc.org
Subject: I-D ACTION:draft-segmuller-sieve-relation-02.txt
Message-ID: <16896876.1021903489@ballybran.diz.watson.ibm.com>
X-Mailer: Mulberry/2.2.1 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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>


A New Internet-Draft is available from the on-line Internet-Drafts directories.


Title : Sieve Extension: Relational Tests
Author(s) : W. Segmuller
Filename : draft-segmuller-sieve-relation-02.txt
Pages : 6
Date : 15-May-02

This document describes the RELATIONAL extension to the Sieve mail
filtering language [SIEVE].  This extension allows relational
operators on field values and on the number of entities in header
fields and addresses.

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

To remove yourself from the IETF Announcement list, send a message to
ietf-announce-request with the word unsubscribe in the body of the message.

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-segmuller-sieve-relation-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

From owner-ietf-mta-filters Tue May 21 13:00:42 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g4LK0gC05573
	for ietf-mta-filters-bks; Tue, 21 May 2002 13:00:42 -0700 (PDT)
Received: from mail.wechsler.com ([207.237.149.124])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g4LK0fL05569
	for <ietf-mta-filters@imc.org>; Tue, 21 May 2002 13:00:41 -0700 (PDT)
Received: from [10.1.1.212] (g-floor.wechsler.com [10.1.1.212])
 by mail.wechsler.com (iPlanet Messaging Server 5.1 (built May  8 2001))
 with ESMTPA id <H0FN08NFZHLWSQ00AY@mail.wechsler.com> for
 ietf-mta-filters@imc.org; Tue,
 21 May 2002 16:00:40 -0400 (Eastern Daylight Time)
Date: Tue, 21 May 2002 16:00:37 -0400
From: patrick conlin <patrick@wechsler.com>
Subject: Test body
To: ietf-mta-filters@imc.org
Message-id: <B9101FA5.11F9%patrick@wechsler.com>
MIME-version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
User-Agent: Microsoft-Entourage/10.0.0.1309
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 everyone,

I am implementing a simple sieve mail filter on our iplanet messaging
server. I currently have a simple script that redirects undesireable emails
to a catch-all email address on our mail server. I've got matches for
:header, :domain, and :all, but there are some messages that I won't be able
to intercept without being able to do matches against message bodies.

I'd like to do:

If body :contains "string" {
    redirect catchall@wechsler.com;}

But I don't think that's possible.

Alternatively, would it be possible to do something like:

Require "envelope"
If envelope :all :contains "DATA" "string" {
    redirect catchall@wechsler.com;}

Any help would be appreciated, including a firm reminder that this is not an
end-user support list and a suggestion as to a better forum for this
question.

Thanks,

patrick conlin
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
director of internal technology
wechsler ross & partners
71 5th avenue, 4th floor
new york, ny 10003-3004
212.924.3337 x218
http://www.wechsler.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g4LK0gC05573 for ietf-mta-filters-bks; Tue, 21 May 2002 13:00:42 -0700 (PDT)
Received: from mail.wechsler.com ([207.237.149.124]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4LK0fL05569 for <ietf-mta-filters@imc.org>; Tue, 21 May 2002 13:00:41 -0700 (PDT)
Received: from [10.1.1.212] (g-floor.wechsler.com [10.1.1.212]) by mail.wechsler.com (iPlanet Messaging Server 5.1 (built May  8 2001)) with ESMTPA id <H0FN08NFZHLWSQ00AY@mail.wechsler.com> for ietf-mta-filters@imc.org; Tue, 21 May 2002 16:00:40 -0400 (Eastern Daylight Time)
Date: Tue, 21 May 2002 16:00:37 -0400
From: patrick conlin <patrick@wechsler.com>
Subject: Test body
To: ietf-mta-filters@imc.org
Message-id: <B9101FA5.11F9%patrick@wechsler.com>
MIME-version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
User-Agent: Microsoft-Entourage/10.0.0.1309
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 everyone,

I am implementing a simple sieve mail filter on our iplanet messaging
server. I currently have a simple script that redirects undesireable emails
to a catch-all email address on our mail server. I've got matches for
:header, :domain, and :all, but there are some messages that I won't be able
to intercept without being able to do matches against message bodies.

I'd like to do:

If body :contains "string" {
    redirect catchall@wechsler.com;}

But I don't think that's possible.

Alternatively, would it be possible to do something like:

Require "envelope"
If envelope :all :contains "DATA" "string" {
    redirect catchall@wechsler.com;}

Any help would be appreciated, including a firm reminder that this is not an
end-user support list and a suggestion as to a better forum for this
question.

Thanks,

patrick conlin
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
director of internal technology
wechsler ross & partners
71 5th avenue, 4th floor
new york, ny 10003-3004
212.924.3337 x218
http://www.wechsler.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g4KI4sU06166 for ietf-mta-filters-bks; Mon, 20 May 2002 11:04:54 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4KI4rL06161 for <ietf-mta-filters@imc.org>; Mon, 20 May 2002 11:04:53 -0700 (PDT)
Received: from sp1n293en1.watson.ibm.com (sp1n293en1.watson.ibm.com [9.2.112.57]) by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4KI4nO11744 for <ietf-mta-filters@imc.org>; Mon, 20 May 2002 14:04:49 -0400
Received: from ballybran.diz.watson.ibm.com (ballybran.watson.ibm.com [9.2.42.70]) by sp1n293en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4KI4nk28196 for <ietf-mta-filters@imc.org>; Mon, 20 May 2002 14:04:49 -0400
Date: Mon, 20 May 2002 14:04:49 -0400
From: Wolfgang Segmuller <whs@watson.ibm.com>
To: ietf-mta-filters@imc.org
Subject: I-D ACTION:draft-segmuller-sieve-relation-02.txt
Message-ID: <16896876.1021903489@ballybran.diz.watson.ibm.com>
X-Mailer: Mulberry/2.2.1 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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>

A New Internet-Draft is available from the on-line Internet-Drafts directories.


Title : Sieve Extension: Relational Tests
Author(s) : W. Segmuller
Filename : draft-segmuller-sieve-relation-02.txt
Pages : 6
Date : 15-May-02

This document describes the RELATIONAL extension to the Sieve mail
filtering language [SIEVE].  This extension allows relational
operators on field values and on the number of entities in header
fields and addresses.

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

To remove yourself from the IETF Announcement list, send a message to
ietf-announce-request with the word unsubscribe in the body of the message.

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-segmuller-sieve-relation-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


Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g4ICDV615884 for ietf-mta-filters-bks; Sat, 18 May 2002 05:13:31 -0700 (PDT)
Received: from starship.enterprise.ucs.ed.ac.uk (starship.enterprise.ucs.ed.ac.uk [129.215.40.70]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4ICDOL15878 for <ietf-mta-filters@imc.org>; Sat, 18 May 2002 05:13:29 -0700 (PDT)
Received: from nigelhome (pc-80-195-32-192-ed.blueyonder.co.uk [80.195.32.192]) by enterprise.ucs.ed.ac.uk (Rockliffe SMTPRA 5.2.3) with ESMTP id <B0000144234@starship.enterprise.ucs.ed.ac.uk> for <ietf-mta-filters@imc.org>; Sat, 18 May 2002 12:57:24 +0100
Message-ID: <002101c1fe63$67ecbcb0$c020c350@nigelhome>
From: "Nigel Swinson" <Nigel@Swinson.com>
To: <ietf-mta-filters@imc.org>
References: <20020518053430.57865.qmail@web21108.mail.yahoo.com>
Subject: Re: filter attachments with sieve
Date: Sat, 18 May 2002 12:59:03 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
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>

> hi, i am usind iplanet messaging server, i could to
> filter email by subject and content but i dont know
> the axactly form to use sieve script to filter an exe
> file (file.txt) in an attachment, anybody know how to
> do this?  which is the right sintax?

The base Sieve spec does not define any test for the body of a message.
Hence there is no way to test for attachments.  This is because allowing
searches in the body of a message dramatically increases the search space
making Sieve scripts much slower to execute.

However some implementations like www.Mailsite.com define an x_body
extension that allows you to search through the body for strings (and
regexes if you have the regex extension available).

The mailsite users have come to use the x_body extension quite heavily and
have ended up using tests like this:

 x_body :regex
"(^|;)(\\s*name=|begin\\s+\\d+\\s+)(\".+\\.|.+\\.)(bat|cmd|com|exe|hta|js|js
e|lnk|pif|scr|sct|shb|shs|vb|vbe|vbs|wsc|wsf|wsh|dll|ocx|msi)(\"|$|\\?=\"|\\
s+)"

Sadly they have also found that enabling such a test server-wide has
resulted in a substantial perfromance hit, which is I suppose why Sieve
didn't natively suggest an x_body extension.  This doesn't take away though
from how useful such a test can be though!!

I have no experience of iPlanets server so I can not speak for what it has
implemented.

Cheers,

Nigel




Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g4I5YRG29702 for ietf-mta-filters-bks; Fri, 17 May 2002 22:34:27 -0700 (PDT)
Received: from web21108.mail.yahoo.com (web21108.mail.yahoo.com [216.136.227.110]) by above.proper.com (8.11.6/8.11.3) with SMTP id g4I5YQL29698 for <ietf-mta-filters@imc.org>; Fri, 17 May 2002 22:34:26 -0700 (PDT)
Message-ID: <20020518053430.57865.qmail@web21108.mail.yahoo.com>
Received: from [200.39.56.180] by web21108.mail.yahoo.com via HTTP; Sat, 18 May 2002 00:34:30 CDT
Date: Sat, 18 May 2002 00:34:30 -0500 (CDT)
From: =?iso-8859-1?q?Octavio=20Uribe?= <ouribemx@yahoo.com.mx>
Subject: filter attachments with sieve
To: ietf-mta-filters@imc.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
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>

hi, i am usind iplanet messaging server, i could to
filter email by subject and content but i dont know
the axactly form to use sieve script to filter an exe
file (file.txt) in an attachment, anybody know how to
do this?  which is the right sintax?

Thanks

Octavio

_________________________________________________________
Do You Yahoo!?
La emoción e intensidad del deporte en Yahoo! Deportes. http://deportes.yahoo.com.mx


Received: by above.proper.com (8.11.6/8.11.3) id g4FI2FH05715 for ietf-mta-filters-bks; Wed, 15 May 2002 11:02:15 -0700 (PDT)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4FI2EL05711 for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 11:02:14 -0700 (PDT)
Received: from oceana.com (KEN.oceana.com [192.168.10.26]) by eagle.oceana.com (8.12.3-SASLv2.Beta4/8.12.3) with ESMTP id g4FI2AkP010414 for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 14:02:11 -0400
Message-ID: <3CE2A2F0.E0F97C57@oceana.com>
Date: Wed, 15 May 2002 14:03:28 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: ietf-mta-filters@imc.org
Subject: Re: draft-segmuller-sieve-relation-01.txt
References: <594621984.1021469726@birch>
Content-Type: text/plain; charset=us-ascii
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>

Wolfgang Segmuller wrote:
> 
> I've just sent the -02 document to the drafts editor.
> 
> --On Monday, May 13, 2002 2:59 PM -0400 Ken Murchison <ken@oceana.com>
> wrote:
> 
> >
> > 3. Is specifying a :comparator for a :count match required, or should we
> > assume "i;ascii-numeric" if not specified otherwise (although this
> > contradicts the base spec?  If so, should require "relational" then
> > imply require "i;ascii-numeric"?
> >
> 
> At the moment, it is not required, but since the default comparator is
> i;ascii-casemap it really must be specified.
> 
> I could see changing the default comparator to i;ascii-numeric if :count is
> specified.  This would modify the base specification which says that the
> default comparator is i;ascii-casemap.
> 
> It would be nice if require "relational" implies require "i;ascii-numeric",
> but I think that would be a tough sell since it would violate the base
> specification.  Also it is possible to create a sieve script that uses
> relational, but does not use i;ascii-numeric.

Agreed on all points.  Its probably best to just leave it as-is.

Ken
-- 
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 localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g4FHZWI05047 for ietf-mta-filters-bks; Wed, 15 May 2002 10:35:32 -0700 (PDT)
Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4FHZUL05043 for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 10:35:30 -0700 (PDT)
Received: from sp1n294en1.watson.ibm.com (sp1n294en1.watson.ibm.com [9.2.112.58]) by igw3.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4FHZQO25362 for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 13:35:26 -0400
Received: from birch (birch.watson.ibm.com [9.2.40.66]) by sp1n294en1.watson.ibm.com (8.11.4/8.11.4) with ESMTP id g4FHZQr22464 for <ietf-mta-filters@imc.org>; Wed, 15 May 2002 13:35:26 -0400
Date: Wed, 15 May 2002 13:35:26 -0400
From: Wolfgang Segmuller <whs@watson.ibm.com>
To: ietf-mta-filters@imc.org
Subject: Re: draft-segmuller-sieve-relation-01.txt
Message-ID: <594621984.1021469726@birch>
X-Mailer: Mulberry/2.2.1 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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 just sent the -02 document to the drafts editor.

--On Monday, May 13, 2002 2:59 PM -0400 Ken Murchison <ken@oceana.com> 
wrote:

>
> 3. Is specifying a :comparator for a :count match required, or should we
> assume "i;ascii-numeric" if not specified otherwise (although this
> contradicts the base spec?  If so, should require "relational" then
> imply require "i;ascii-numeric"?
>

At the moment, it is not required, but since the default comparator is 
i;ascii-casemap it really must be specified.

I could see changing the default comparator to i;ascii-numeric if :count is 
specified.  This would modify the base specification which says that the 
default comparator is i;ascii-casemap.

It would be nice if require "relational" implies require "i;ascii-numeric", 
but I think that would be a tough sell since it would violate the base 
specification.  Also it is possible to create a sieve script that uses 
relational, but does not use i;ascii-numeric.

Wolfgang


Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g4E1m1H03362 for ietf-mta-filters-bks; Mon, 13 May 2002 18:48:01 -0700 (PDT)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4E1lxL03357 for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 18:47:59 -0700 (PDT)
Received: from oceana.com (ppp4.oceana.com [192.168.10.246]) by eagle.oceana.com (8.12.3-SASLv2.Beta4/8.12.3) with ESMTP id g4E1lvkP025570; Mon, 13 May 2002 21:47:57 -0400
Message-ID: <3CE06D52.C5ED4328@oceana.com>
Date: Mon, 13 May 2002 21:50:10 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.79 [en] (Win98; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Tim Showalter <tjs@mirapoint.com>
CC: ietf-mta-filters@imc.org
Subject: Re: draft-segmuller-sieve-relation-01.txt
References: <3CE00D20.344FA693@oceana.com> <1021329451.208.36.camel@funhouse.mirapoint.com>
Content-Type: text/plain; charset=us-ascii
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>

Tim Showalter wrote:
> 
> > 2. Why is the relational-match a quoted string instead of an unquoted
> > token, ie:
> >
> >       if header :value lt "subject" "foo" ...
> 
> I haven't read Wolfgang's document (recently, if at all), but this would
> require an extension to the grammar in the base spec.

Yup.  My bad (should've assumed it was something obvious).

Tim, consider this your quarterly reminder to do something with vacation
;)

Ken
-- 
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: by above.proper.com (8.11.6/8.11.3) id g4DNGQZ29470 for ietf-mta-filters-bks; Mon, 13 May 2002 16:16:26 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DNGOL29466 for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 16:16:24 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01KHOKEWRWWW000NL2@mauve.mrochek.com> for ietf-mta-filters@imc.org; Mon, 13 May 2002 16:16:26 -0700 (PDT)
Date: Mon, 13 May 2002 16:15:11 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: draft-segmuller-sieve-relation-01.txt
In-reply-to: "Your message dated Mon, 13 May 2002 16:58:38 -0600" <1021330718.208.41.camel@funhouse.mirapoint.com>
To: Tim Showalter <tjs@mirapoint.com>
Cc: ned.freed@mrochek.com, ietf-mta-filters@imc.org
Message-id: <01KHOOHPFNRU000NL2@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
References: <3CE00D20.344FA693@oceana.com> <1021329451.208.36.camel@funhouse.mirapoint.com> <01KHONHXML5A000NL2@mauve.mrochek.com> <1021330718.208.41.camel@funhouse.mirapoint.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, 2002-05-13 at 16:48, ned.freed@mrochek.com wrote:
> >
> > > > 2. Why is the relational-match a quoted string instead of an unquoted
> > > > token, ie:
> > > >
> > > > 	if header :value lt "subject" "foo" ...
> >
> > > I haven't read Wolfgang's document (recently, if at all), but this would
> > > require an extension to the grammar in the base spec.
> >
> > Concur. As such, I think we need to retain the quotes.

> Alternatively we could have a :lt tagged argument (or even :value :lt,
> but I don't really like that, and there's a SHOULD NOT against it, I
> think).

> My apologies if this has been shot down already.

I don't especially care as long as we don't change the underlying syntax.
OTOH, I see little difference between :value "lt" and :lt. Given that the
former is already in use, I'd suggest sticking to it.

				Ned




Received: by above.proper.com (8.11.6/8.11.3) id g4DMwa828919 for ietf-mta-filters-bks; Mon, 13 May 2002 15:58:36 -0700 (PDT)
Received: from mail.mirapoint.com (IDENT:mirapoint@mail.mirapoint.com [63.107.133.18]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DMwYL28914 for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 15:58:34 -0700 (PDT)
Received: from funhouse.mirapoint.com (funhouse.mirapoint.com [192.168.0.92]) by mail.mirapoint.com (Mirapoint Messaging Server MOS 3.1.1.34) with ESMTP id ARI00729; Mon, 13 May 2002 15:58:32 -0700 (PDT)
Subject: Re: draft-segmuller-sieve-relation-01.txt
From: Tim Showalter <tjs@mirapoint.com>
To: ned.freed@mrochek.com
Cc: ietf-mta-filters@imc.org
In-Reply-To: <01KHONHXML5A000NL2@mauve.mrochek.com>
References: <3CE00D20.344FA693@oceana.com> <1021329451.208.36.camel@funhouse.mirapoint.com>  <01KHONHXML5A000NL2@mauve.mrochek.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.3 
Date: 13 May 2002 16:58:38 -0600
Message-Id: <1021330718.208.41.camel@funhouse.mirapoint.com>
Mime-Version: 1.0
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, 2002-05-13 at 16:48, ned.freed@mrochek.com wrote:
> 
> > > 2. Why is the relational-match a quoted string instead of an unquoted
> > > token, ie:
> > >
> > > 	if header :value lt "subject" "foo" ...
> 
> > I haven't read Wolfgang's document (recently, if at all), but this would
> > require an extension to the grammar in the base spec.
> 
> Concur. As such, I think we need to retain the quotes.

Alternatively we could have a :lt tagged argument (or even :value :lt,
but I don't really like that, and there's a SHOULD NOT against it, I
think).

My apologies if this has been shot down already.

Tim





Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g4DMmWH28690 for ietf-mta-filters-bks; Mon, 13 May 2002 15:48:32 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DMmUL28685 for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 15:48:31 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01KHOKEWRWWW000NL2@mauve.mrochek.com> for ietf-mta-filters@imc.org; Mon, 13 May 2002 15:48:22 -0700 (PDT)
Date: Mon, 13 May 2002 15:48:07 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: draft-segmuller-sieve-relation-01.txt
In-reply-to: "Your message dated Mon, 13 May 2002 16:37:30 -0600" <1021329451.208.36.camel@funhouse.mirapoint.com>
To: Tim Showalter <tjs@mirapoint.com>
Cc: Ken Murchison <ken@oceana.com>, ietf-mta-filters@imc.org
Message-id: <01KHONHXML5A000NL2@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
References: <3CE00D20.344FA693@oceana.com> <1021329451.208.36.camel@funhouse.mirapoint.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>

> > 2. Why is the relational-match a quoted string instead of an unquoted
> > token, ie:
> >
> > 	if header :value lt "subject" "foo" ...

> I haven't read Wolfgang's document (recently, if at all), but this would
> require an extension to the grammar in the base spec.

Concur. As such, I think we need to retain the quotes.

				Ned



Received: by above.proper.com (8.11.6/8.11.3) id g4DMbbs28447 for ietf-mta-filters-bks; Mon, 13 May 2002 15:37:37 -0700 (PDT)
Received: from mail.mirapoint.com (IDENT:mirapoint@mail.mirapoint.com [63.107.133.18]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DMbZL28443 for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 15:37:35 -0700 (PDT)
Received: from funhouse.mirapoint.com (funhouse.mirapoint.com [192.168.0.92]) by mail.mirapoint.com (Mirapoint Messaging Server MOS 3.1.1.34) with ESMTP id ARI00597; Mon, 13 May 2002 15:37:25 -0700 (PDT)
Subject: Re: draft-segmuller-sieve-relation-01.txt
From: Tim Showalter <tjs@mirapoint.com>
To: Ken Murchison <ken@oceana.com>
Cc: ietf-mta-filters@imc.org
In-Reply-To: <3CE00D20.344FA693@oceana.com>
References: <3CE00D20.344FA693@oceana.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.3 
Date: 13 May 2002 16:37:30 -0600
Message-Id: <1021329451.208.36.camel@funhouse.mirapoint.com>
Mime-Version: 1.0
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>

> 2. Why is the relational-match a quoted string instead of an unquoted
> token, ie:
> 
> 	if header :value lt "subject" "foo" ...

I haven't read Wolfgang's document (recently, if at all), but this would
require an extension to the grammar in the base spec.

Tim




Received: by above.proper.com (8.11.6/8.11.3) id g4DIwm322569 for ietf-mta-filters-bks; Mon, 13 May 2002 11:58:48 -0700 (PDT)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g4DIwkL22565 for <ietf-mta-filters@imc.org>; Mon, 13 May 2002 11:58:47 -0700 (PDT)
Received: from oceana.com (KEN.oceana.com [192.168.10.26]) by eagle.oceana.com (8.12.3-SASLv2.Beta4/8.12.3) with ESMTP id g4DIwSkP019804; Mon, 13 May 2002 14:58:28 -0400
Message-ID: <3CE00D20.344FA693@oceana.com>
Date: Mon, 13 May 2002 14:59:44 -0400
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Wolfgang Segmuller <whs@watson.ibm.com>
CC: ietf-mta-filters@imc.org
Subject: draft-segmuller-sieve-relation-01.txt
Content-Type: text/plain; charset=us-ascii
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>

Wolfgang,

I'm currently implementing this extension in CMU-Sieve, and I have a
couple of questions:

1. Do you have a -02 draft with the changes previously discussed on the
list?

2. Why is the relational-match a quoted string instead of an unquoted
token, ie:

	if header :value lt "subject" "foo" ...

3. Is specifying a :comparator for a :count match required, or should we
assume "i;ascii-numeric" if not specified otherwise (although this
contradicts the base spec?  If so, should require "relational" then
imply require "i;ascii-numeric"?

Ken
-- 
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: by above.proper.com (8.11.6/8.11.3) id g45GSBS21252 for ietf-mta-filters-bks; Sun, 5 May 2002 09:28:11 -0700 (PDT)
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g45GS8L21247 for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 09:28:08 -0700 (PDT)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g45GS1Q4001225 for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 18:28:08 +0200
To: ietf-mta-filters@imc.org
Subject: Re: Managesieve
References: <iluit627st4.fsf@extundo.com> <200205051420.45400@sendmail.mutz.com>
From: Simon Josefsson <simon+ietf-mta-filters@josefsson.org>
In-Reply-To: <200205051420.45400@sendmail.mutz.com> (Marc Mutz's message of "Sun, 5 May 2002 14:20:43 +0200")
Date: Sun, 05 May 2002 18:27:50 +0200
Message-ID: <iluoffuh855.fsf@extundo.com>
Lines: 39
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
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>

[Resending to list with correct From: header]

Marc, thanks for your comments.  Comments inline.

Marc Mutz <mutz@kde.org> writes:

> On Sunday 05 May 2002 13:11, Simon Josefsson wrote:
> <snip>
>> +      sieveurl = "sieve://" [ hostport ] "/" scriptname
> <snip>
>
> s/hostport/server/

Use of server (to get username/password) is NOT RECOMMENDED according
to RFC 2396 and I kind of agree with their rationale.  But I'm sure
this issue come up with almost every URL syntax, so perhaps the "best
practices" for this has changed since 2396.  Any W3C/URI gurus here?
I don't care much either way, only that we should not go against
established procedures.

(Who came up with "NOT RECOMMENDED"?  I wish they had read RFC2119.)

> Do we need a way to activate a script via URLs? Like 
> sieve://user@host/myscript1.siv?activate=1
> ?

Personally I dislike this abuse of URLs.  URLs should point to network
resources, not embed actions.  I know the history is full of bad
examples when it comes to these things; pop URL etc, but perhaps
that's not a good enough reason to perpetuate it.  Embedding username
and passwords is also an example of this abuse, and it is a
particulary bad one since it is not generic over all authentication
mechanisms (no way of expressing similar things for STARTTLS, GSSAPI
etc authentication), so in the end username/passwords gets used just
because it is easier to use it than other mechanisms, which has
security implications.

But again, I don't care much either way and if people think it is OK
then let's change it.



Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g45CLXM13954 for ietf-mta-filters-bks; Sun, 5 May 2002 05:21:33 -0700 (PDT)
Received: from c000.snv.cp.net (h001.c000.snv.cp.net [209.228.32.65]) by above.proper.com (8.11.6/8.11.3) with SMTP id g45CLWL13949 for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 05:21:32 -0700 (PDT)
Received: (cpmta 6170 invoked from network); 5 May 2002 05:21:27 -0700
Received: from 129.70.36.4 (HELO dirichlet.mathematik.uni-bielefeld.de) by smtp.mutz.com (209.228.32.65) with SMTP; 5 May 2002 05:21:27 -0700
X-Sent: 5 May 2002 12:21:27 GMT
From: Marc Mutz <mutz@kde.org>
Organization: KDE
To: Simon Josefsson <simon+ietf-mta-filters@josefsson.org>, tmartin@mirapoint.com
Subject: Re: Managesieve
Date: Sun, 5 May 2002 14:20:43 +0200
User-Agent: KMail/1.4.5
Cc: ietf-mta-filters@imc.org
References: <iluit627st4.fsf@extundo.com>
In-Reply-To: <iluit627st4.fsf@extundo.com>
X-PGP-Key: 0xBDBFE838
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200205051420.45400@sendmail.mutz.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>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 05 May 2002 13:11, Simon Josefsson wrote:
<snip>
> +      sieveurl = "sieve://" [ hostport ] "/" scriptname
<snip>

s/hostport/server/

Do we need a way to activate a script via URLs? Like 
sieve://user@host/myscript1.siv?activate=1
?

Marc

- -- 
Marc Mutz <mutz@kde.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE81SOc3oWD+L2/6DgRAidKAKCkfZXyO+ppwkKT4g16AcfEElp9zACffMBP
HNbzAi+ALMPIkjUOW+3p+U0=
=E1Hm
-----END PGP SIGNATURE-----



Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g45BC8S12638 for ietf-mta-filters-bks; Sun, 5 May 2002 04:12:08 -0700 (PDT)
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g45BC5L12634 for <ietf-mta-filters@imc.org>; Sun, 5 May 2002 04:12:06 -0700 (PDT)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g45BBiQ4032044; Sun, 5 May 2002 13:11:53 +0200
To: tmartin@mirapoint.com
Cc: ietf-mta-filters@imc.org
Subject: Managesieve
From: Simon Josefsson <simon+ietf-mta-filters@josefsson.org>
Date: Sun, 05 May 2002 13:11:35 +0200
Message-ID: <iluit627st4.fsf@extundo.com>
Lines: 199
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Economic Science, i686-pc-linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
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>

Any progress on the managesieve spec?  It seems to have expired from
the I-D repository.  I still think it is a good idea to have it
published.

Some comments:

+ Supporting both quoted and literal strings in all places makes it
  more difficult to implement the protocol without much gain.  The
  AUTHENTICATE "strings" must be base64 so quoted strings are
  sufficient.  The PUTSCRIPT and GETSCRIPT strings are probably only
  literals in practice.  Quoted strings are sufficient for SASL names.
  The only problematic one was the response-oknobye for PUTSCRIPT
  where it can contains multiline errors. In practice I think a long
  error doesn't make much sense, so I restricted it to just a quoted
  string.

+ It is not clear if the protocol is called "managesieve" or "sieve".
  I don't see much confusion arising from using "sieve" (which is used
  for the SASL service and /etc/service entry already), so I suggest
  this for brevity ("managesieve" looks ugly).

+ There is no URL syntax for a managesieve resource.

Patch:

--- draft-martin-managesieve-03.txt.orig	Sun May  5 12:28:48 2002
+++ draft-martin-managesieve-03.txt	Sun May  5 13:07:40 2002
@@ -36,9 +36,9 @@
 Abstract
 
     Sieve scripts allow users to filter incoming email. Message stores
-    are commonly sealed servers so users cannot log into them , yet
+    are commonly sealed servers so users cannot log into them, yet
     users must be able to update their scripts on them.  This document
-    describes a protocol for securely managing Sieve scripts on a remote
+    describes a protocol "sieve" for securely managing Sieve scripts on a remote
     server.  This protocol allows a user to have multiple scripts, and
     also alerts a user to syntactically flawed scripts.
 
@@ -103,7 +103,7 @@
 
 8.     Author's Address  . . . . . . . . . . . . . . . . . . . . . .  18
 
-
+A.     URL Scheme  . . . . . . . . . . . . . . . . . . . . . . . . .  19
 
 
 
@@ -193,9 +193,9 @@
 
 1.3.  Syntax
 
-    This a line oriented protocol much like [IMAP] or [ACAP]. There are
-    three types: ATOMS, numbers and strings. Strings may be quoted or
-    literal. See [ACAP] for detailed descriptions of these types.
+    This a line oriented protocol much like [IMAP] or [ACAP]. There
+    are four types: ATOMS, numbers and quoed strings and literal
+    strings. See [ACAP] for detailed descriptions of these types.
 
     Each command consists of an atom followed by zero or more strings
     and numbers terminated by a newline.
@@ -634,9 +634,7 @@
     readable and SHOULD contain a specific error message giving line
     number of the first error. Implementors should strive to produce
     helpful error messages similar to those given by programming
-    language compilers. Client implementations should note that this may
-    be a multiline literal string with more than one error message
-    separated by newlines.
+    language compilers.
 
     Example:
 
@@ -807,7 +805,7 @@
                             command-putscript / command-capability / command-havespace /
                             command-starttls
 
-    command-authenticate  = "AUTHENTICATE" SP auth-type [SP string]  *(CRLF string)
+    command-authenticate  = "AUTHENTICATE" SP auth-type [SP quoted]  *(CRLF quoted)
 
     command-capability    = "CAPABILITY" CRLF
 
@@ -821,7 +819,7 @@
 
     command-logout        = "LOGOUT" CRLF
 
-    command-putscript     = "PUTSCRIPT" SP sieve-name SP string CRLF
+    command-putscript     = "PUTSCRIPT" SP sieve-name SP literal CRLF
 
     command-setactive     = "SETACTIVE" SP sieve-name CRLF
 
@@ -850,7 +848,7 @@
                             "TRANSITION-NEEDED" / "TRYLATER" /
                             resp-code-ext
 
-    resp-code-sasl        = "SASL" SP string
+    resp-code-sasl        = "SASL" SP quoted
 
     resp-code-ext         = iana-token [SP extension-data]
                             ;; unknown codes MUST be tolerated by the client
@@ -860,13 +858,13 @@
                             response-putscript / response-capability / response-havespace /
                             response-starttls
 
-    response-authenticate = *(string CRLF) (response-oknobye)
+    response-authenticate = *(quoted CRLF) (response-oknobye)
 
-    response-capability   = *(string [SP string] CRLF) response-oknobye
+    response-capability   = *(quoted [SP quoted] CRLF) response-oknobye
 
     response-deletescript = response-oknobye
 
-    response-getscript    = [string CRLF] response-oknobye
+    response-getscript    = [literal CRLF] response-oknobye
 
     response-havespace    = response-oknobye
 
@@ -875,7 +873,7 @@
 
     response-logout       = response-oknobye
 
-    response-oknobye      = ("OK" / "NO" / "BYE") [SP "(" resp-code ")"] [SP string] CRLF
+    response-oknobye      = ("OK" / "NO" / "BYE") [SP "(" resp-code ")"] [SP quoted] CRLF
 
     response-putscript    = response-oknobye
 
@@ -883,9 +881,9 @@
 
     response-starttls     = response-oknobye
 
-    sieve-name            = string
+    sieve-name            = quoted
+
 
-    string                = quoted / literal
 
 
 
@@ -1010,3 +1008,61 @@
 
 Expires November 6, 2001        Martin                         [Page 18]
 
+Internet Draft           Managing Sieve Scripts              May 1, 2001
+
+
+A.  URL Scheme
+
+      URL scheme name: "sieve"
+
+      URL scheme syntax:
+
+      Described using ABNF [RFC 2234] and ABNF entities from RFC 2396.
+
+      sieveurl = "sieve://" [ hostport ] "/" scriptname
+
+      scriptname = *pchar
+
+      Character encoding considerations: The script name, if present,
+      is in UTF-8.  Non-ASCII characters must be escaped as described
+      in RFC 2396.
+
+      Intended usage: A sieve URL identifies a sieve server or a sieve
+      script on a sieve server.  The latter always have the
+      application/sieve MIME type.
+
+      Applications and/or protocols which use this URL scheme name:
+      The protocol is described in this document.
+
+      Interoperability considerations.  None.
+
+      Security considerations:  None.
+
+      Relevant publications:  This document and RFC 3028.
+
+      Person & email address to contact for further information:
+      Author of this document.
+
+      Author/Change controller:  Author of this document.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Expires November 6, 2001        Martin                         [Page 19]
+


