| Previous | Contents | Index |
Format forwarding information.
int POPSTORE_format_forwarding_d (format, domain, domain_len, user, user_len, is_prefix, context, output_proc) POPSTORE_format_element *format; char *domain; int domain_len; char *user; int user_len; int is_prefix; void *context; int (*output_proc)();
Pointer to a formatting context returned by a previous call to POPSTORE_format_read. Used for input only.
formatName of the user domain associated with the user
domainuser. Supply a value ofNULLto indicate thedefaultdomain. Used for input only.Length in bytes of the user domain name,
domain_lendomain. Supply a value of zero to indicate thedefaultdomain. Used for input only.Name of the user to display the forwarding for. This string can not contain wild cards. The length of this string cannot exceed
userPOPSTORE_MAX_USER_LENbytes. Used for input only.Length in bytes of the username passed in
user_lenuser. Used for input Only.Boolean flag with value 0 or 1 indicating whether or not to treat the specified username as a prefix. Used for input only.
is_prefixPointer to private client data to be passed to the client-supplied
contextoutput_procprocedure. Used for input only.Address of a client-supplied subroutine to call to output formatted data. Used for input only.
output_proc
To generate a formatted display of forwarding information, usePOPSTORE_format_forwarding. The formatting context passed to this subroutine should be derived from a formatting file using substitution strings from Tables 4-10 and 4-11. The supplied username is treated in a case-insensitive fashion and can not contain wild cards. An exact match will be done ifis_prefixhas the value 0. Ifis_prefixhas a non-zero value, then the value ofuserwill be treated as a prefix and all forwardings for usernames beginning with that value will be returned. For instance, ifuserhas the value "D" andis_prefixis non-zero, then all forwardings for usernames beginning with the letter "D" will be returned. To return all of the forwardings, supply an empty string foruser, the value 0 foruser_len, and a non-zero value foris_prefix. See the description of thePOPSTORE_format_counterssubroutine for a description of theoutput_procprocedure.
POPSTORE_SUCCESS Normal, successful completion. POPSTORE_BADARG Bad value passed for the address of the output procedure, output_proc.POPSTORE_TOOLONG Username string is too long; it can not exceed a length of POPSTORE_MAX_USER_LEN bytes. Any error value returned by the output procedure, output_proc.
| Previous | Next | Contents | Index |