Previous | Contents | Index |
Format forwarding information.
int POPSTORE_format_forwarding (format, user, user_len, is_prefix, context, output_proc) POPSTORE_format_element *format; 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.
format
Name of the user to display the forwarding for. This string can not contain wild cards. The length of this string can not exceed POPSTORE_MAX_USER_LEN bytes. Used for input only.
user
Length in bytes of the username passed in
user_len
user
. 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_prefix
Pointer to private client data to be passed to the client-supplied
context
output_proc
procedure. Used for input only.Address of a client-supplied subroutine to call to output formatted data. Used for input only.
output_proc
Although still supported, this subroutine is obsolete. Instead use the more general POPSTORE_format_forwarding_d
subroutine.
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 |