3 Aug 2010 10:34
Re: Question about draft-ietf-sieve-external-lists-02
Stephan Bosch <stephan <at> rename-it.nl>
2010-08-03 08:34:46 GMT
2010-08-03 08:34:46 GMT
Op 31-7-2010 19:09, Ned Freed schreef: >> However, the >> document does not describe how this new match type interacts with a >> specified comparator. > > Yes, and I'm of two minds as to how to fix it. The simplest thing to > do is to > simply declare that comparators have no effect on :list. (We can make > them a > no-op or an error to even specify.) The alternative is to allow > comparators to > be an input, but for the use of that input to be implementation and > list-specific. (Again, whether or not it would be an error to specify a > comparator on a :list that doesn't consume it would need to be > determined.) I think it is always a good idea to make sure the user gets to know that the combination of match-type and comparator isn't valid. If it is obvious at compile time, a compile error would be appropriate. At runtime I am not sure. A fatal error seems harsh. But, simply ignoring a specified comparator is in my opinion not a good idea either. The base spec already specifies something that is somewhat analogous to the :list situation: Section 2.7.3 Comparators: Some comparators may not be usable with substring matches; that is, they may only work with ":is". It is an error to try to use a comparator with ":matches" or ":contains" that is not compatible with(Continue reading)
RSS Feed