Re: ABNF or example error in RFC 5228

Alexey Melnikov <alexey.melnikov@isode.com> Wed, 17 December 2008 11:09 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 BCA4228C189 for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Wed, 17 Dec 2008 03:09:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.635
X-Spam-Level:
X-Spam-Status: No, score=-2.635 tagged_above=-999 required=5 tests=[AWL=-0.036, 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 jg3YndtyDSNl for <ietfarch-sieve-archive-Aet6aiqu@core3.amsl.com>; Wed, 17 Dec 2008 03:09:01 -0800 (PST)
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 04C9428C17D for <sieve-archive-Aet6aiqu@ietf.org>; Wed, 17 Dec 2008 03:09:00 -0800 (PST)
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 mBHAvKg1069827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Dec 2008 03:57:20 -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 mBHAvKwH069826; Wed, 17 Dec 2008 03:57:20 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.14.2/8.14.2) with ESMTP id mBHAv9av069802 for <ietf-mta-filters@imc.org>; Wed, 17 Dec 2008 03:57:19 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.130] (shiny.isode.com [62.3.217.250]) by rufus.isode.com (submission channel) via TCP with ESMTPA id <SUjbAgBv4FAQ@rufus.isode.com>; Wed, 17 Dec 2008 10:57:07 +0000
Message-ID: <4948DAED.6080000@isode.com>
Date: Wed, 17 Dec 2008 10:56:45 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Magnus Westerlund <magnus.westerlund@ericsson.com>
CC: ietf-mta-filters@imc.org
Subject: Re: ABNF or example error in RFC 5228
References: <4948D582.7080209@ericsson.com>
In-Reply-To: <4948D582.7080209@ericsson.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
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>

Magnus Westerlund wrote:

>Hi,
>  
>
Hi Magnus,

>When reviewing the ihave document I stumbled on what I believe to be a
>bug in RFC 5228 regarding string list:
>
>2.4.2.1.  String Lists
>
>   When matching patterns, it is frequently convenient to match against
>   groups of strings instead of single strings.  For this reason, a list
>   of strings is allowed in many tests, implying that if the test is
>   true using any one of the strings, then the test is true.
>
>   For instance, the test 'header :contains ["To", "Cc"]
>   ["me@example.com", "me00@landru.example.com"]' is true if either a To
>   header or Cc header of the input message contains either of the email
>   addresses "me@example.com" or "me00@landru.example.com".
>
>   Conversely, in any case where a list of strings is appropriate, a
>   single string is allowed without being a member of a list: it is
>   equivalent to a list with a single member.  This means that the test
>   'exists "To"' is equivalent to the test 'exists ["To"]'.
>
>
>Section 3.2 for example contains the following example:
>
>   Example:  require ["fileinto", "reject"];
>
>However if one looks at the ABNF for string-list it says:
>
>   string-list  = "[" string *("," string) "]" / string
>                    ; if there is only a single string, the brackets
>                    ; are optional
>
>   string       = quoted-string / multi-line
>   quoted-string      = DQUOTE quoted-text DQUOTE
>   multi-line         = "text:" *(SP / HTAB) (hash-comment / CRLF)
>                        *(multiline-literal / multiline-dotstart)
>                        "." CRLF
>  
>
I am looking at the ABNF and not seeing anything wrong. Maybe I was 
looking for too long at this.
So can you elaborate on what you think is wrong?

>So it seems that the description, the examples of string lists doesn't
>match the ABNF syntax for string lists. If I am correct, I think the WG
>needs to address this somehow.
>  
>