On Tue, May 11, 2004 at 06:09:26PM -0400, Cyrus Daboo wrote:
The envelope test syntax in RFC3028 is given as:
Syntax: envelope [COMPARATOR] [ADDRESS-PART] [MATCH-TYPE]
<envelope-part: string-list> <key-list: string-list>
But that is different than the address test syntax:
Syntax: address [ADDRESS-PART] [COMPARATOR] [MATCH-TYPE]
<header-list: string-list> <key-list: string-list>
[COMPARATOR] and [ADDRESS-PART] being switched, which seems odd for a tests
that are so similar.
The example for the envelope test uses the same syntax as the address test.
What is the correct syntax for the envelope test? Either the example is
wrong, or the syntax definition is wrong.
Tagged arguments can be given in any order; my impression was that
the variations in those paragraphs simply illustrated that fact.
From 2.6.2:
Tagged arguments must appear before positional arguments, but
they may appear in any order with other tagged arguments. For
simplicity of the specification, this is not expressed in the
syntax definitions with commands, but they still may be
reordered arbitrarily provided they appear before positional
arguments. Tagged arguments may be mixed with optional
arguments.
and 2.6.3:
Optional arguments are exactly like tagged arguments except that
they may be left out, in which case a default value is implied.
OTOH perhaps I am missing the point :-)
mm