ietf-mta-filters
[Top] [All Lists]

Re: Stripping leading/trailing spaces in relational draft

2005-10-13 04:29:02

Kjetil Torgrim Homme wrote:

I want to revert the suggested text and example in "variables" about the
interaction with "relational", and the new suggested change relative to
the currently published -06 draft is as follows:


5.  Test string

   Usage:    string [MATCH-TYPE] [COMPARATOR]
             <source: string-list> <key-list: string-list>

   The "string" test evaluates to true if any of the source strings
   matches any key.  The type of match defaults to ":is".

+   Some match types mandate stripping of leading and/or trailing
+   whitespace from the inputs prior to comparison whenever the string
+   value is taken from the message.  In the "string" test, both
+   source and key-list are taken from the script, not the message,
+   and whitespace stripping MUST NOT be done unless the script
+   explicitly requests this through some future mechanism.
+
I like the intent of the text, but it seems to be implying that a test can override stripping behavior mandated by a match type.
I thought we've agreed previously that this is not a good idea.