Lines Matching refs:lookup
26 /* Abort dict lookup after this many seconds. */
28 /* When dict lookup timeout is reached, wait a bit longer if the last dict
31 /* Log a warning if dict lookup takes longer than this many milliseconds. */
60 dict_lookup_callback_t *lookup;
952 "dict-client: Invalid lookup '%s' reply: %c%s",
966 i_warning("read(%s): dict lookup took %s: %s",
972 cmd->api_callback.lookup(&result, cmd->api_callback.context);
988 cmd->api_callback.lookup = callback;
1004 struct client_dict_sync_lookup *lookup = context;
1006 lookup->ret = result->ret;
1008 lookup->error = i_strdup(result->error);
1010 lookup->value = i_strdup(result->value);
1016 struct client_dict_sync_lookup lookup;
1018 i_zero(&lookup);
1019 lookup.ret = -2;
1021 client_dict_lookup_async(_dict, key, client_dict_lookup_callback, &lookup);
1022 if (lookup.ret == -2)
1025 switch (lookup.ret) {
1027 *error_r = t_strdup(lookup.error);
1028 i_free(lookup.error);
1031 i_assert(lookup.value == NULL);
1035 *value_r = p_strdup(pool, lookup.value);
1036 i_free(lookup.value);
1081 /* synchronous lookup */
1475 .lookup = client_dict_lookup,