SYNOPSIS |
#include <dk.h>
int rfc2822_mailbox_split(
char *line,
char **user_out,
char **domain_out
);
Parse an RFFC2822 header for a user and hostname.
|
DESCRIPTION |
|
---|
ARGUMENTS |
Argument | Description |
line |
Input line, not including the name of the header.
|
user_out |
Pointer to a variable of type (char *) which will be
set to point to the "local-part" (user ID) found in the input.
|
domain_out |
Pointer to a variable of type (char *) which will be
set to point to the domain found in the input.
|
|
RETURN VALUE |
0 on success, other on failure. The failure codes are internal to the library
for now.
|
NOTES |
- line is modified.
- This function is not part of the DomainKeys API specification. It
is provided as a facility to implementors to reduce code duplication.
|