An empty lookup result is generally not allowed in Postfix. It's
enforced in maps_find(), instead of in each indiividual dict_xxx.c
implementation.
if ((expansion = dict_get(dict, name)) != 0) {
if (*expansion == 0) {
msg_warn("%s lookup of %s returns an empty string result",
maps->title, name);
msg_warn("%s should return NO RESULT in case of NOT FOUND",
maps->title);
maps->error = DICT_ERR_CONFIG;
return (0);
}
This approach is is hopefully a sufficient deterrent to keep people
from using tables that return empty strings.
This infrastructure function is used by many many xxx_maps
implementations.
Wietse
_______________________________________________
Postfix-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]