I think it would be worth putting a note in somewhere that an
implementation may wish to cache the results of a call to
notify_method_capability so that if it is used in a series of if/else
tests, it only needs to be retrieved once.
Now that you bring this up, I'm tempted to go even further, and say that any
result should be consistent throughout the script. If statuses change and
notify_method_capability returns inconsistent results at different times in
the same script, I could see that causing some unpleasant results.
I like Ned's suggestion, and I will add that. My working copy now has
this as the third paragraph, just before the list:
If a particular presence item is tested multiple times within the
same script execution context, implementations MUST present the same
value each time (for example, by caching the value on first use).
This provides consistency within a single execution.
Sounds good to me.
Ned
_______________________________________________
sieve mailing list
sieve(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/sieve