- BOOL yield = cb->caseless?
- (strcmpic(s, pattern) == 0) : (Ustrcmp(s, pattern) == 0);
- if (yield && expand_setup >= 0) expand_nmax = expand_setup;
- return yield? OK : FAIL;
+ if (cb->caseless ? strcmpic(s, pattern) != 0 : Ustrcmp(s, pattern) != 0)
+ return FAIL;
+ if (expand_setup >= 0) expand_nmax = expand_setup;
+ if (valueptr) *valueptr = pattern;
+ return OK;
+
+/*
+XXX looks like $0 may be usable
+XXX could add setting of *valueptr to all the OK returns; seems doable here, the Q
+ is: what effect would it have at config-file level. domain_data & local_part_data
+ would get filled in... might anyone be checking it for emptiness? I think the docs
+ do not say "will be empty otherwise", so that seems ok.
+XXX WORRY: we get new caching of named-list match results. Is that cache checked
+ for the key being matched?
+XXX could also add $0 fill-in with the matching text for pattern? RE already has it,
+ tailmatch already has it, @[] => dotted.quad.etc, @mx => h->address ?
+*/