# InetPop3ParseMessageHeader

int InetPop3ParseMessageHeader (const char *header, const char *fieldName, char **fieldValue);

## Purpose

Parses an email header for the specified field.

## Parameters

Input
Name | Type | Description
header | const char * | The email header to parse. Pass the header value returned by the InetPop3GetMessage function.
fieldName | const char * | The name of the field whose value you need.
Output
Name | Type | Description
fieldValue | char ** | The value of the field parsed from the header. Pass the address of a char* variable to hold the value. This function allocates memory for the value. You must discard this memory by calling InetFreeMemory. If the field is not present, the library sets this parameter to NULL.

## Return Value

Name | Type | Description
result | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.